Skip to content
This repository was archived by the owner on Mar 13, 2018. It is now read-only.
This repository was archived by the owner on Mar 13, 2018. It is now read-only.

Uncaught TypeError: Cannot read property 'position' of null  #11

@pawelstep

Description

@pawelstep

Hi,
when clicking frequently on core-dropdown with paper elements, a null error appears on console.
I guess this is because rendering of paper elements takes a while with its fancy animations, but a new click in the dropdown causes that to happen. The sample code attached below - tried in Chrome "Version 38.0.2125.111 m", on PC/Win7. It is enough to make a series of quick double-clicks on dropdown to get an error msg in console.

Would some kind of check for null or action deferral be needed?

Best regards,
PawelS.

<polymer-element name="login-info" attributes="loggedin user" noscript>
    <template>
            <template if='{{loggedin}}'>
                <paper-menu-button>
                    <paper-item>
                        <span class="puser">User: {{user}}</span>
                    </paper-item>
                    <paper-dropdown class="dropdown">
                        <paper-item>
                            <span class="puser">User: {{user}}</span>
                        </paper-item>
                        <paper-item on-click="{{buttonOnLogout}}">LogOut</paper-item>
                    </paper-dropdown>
                </paper-menu-button>
            </template>
    </template>
</polymer-element>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions