Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

restore input to default if no element is selected #211

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

restore input to default if no element is selected #211

wants to merge 1 commit into from

Conversation

davidcv5
Copy link

The paper-dropdown-menu-light shows label out of place when an item is selected and then all items are removed. i.e. Binding items to a firebase-query or any other dynamic source.

Expected outcome

paper-dropdown-menu-light should return to its default state if all content is removed.

Actual outcome

After items get deleted, the innerHTML of <div id="input"... is empty, instead of &nbsp;, which makes the div smaller and causes the label to show out of place.

Steps to reproduce

  1. Put a paper-dropdown-menu-light on the page.
  2. Put a paper-menu inside with class="dropdown-content".
  3. Put a <template is="dom-repeat" .. inside with items pointing to an array
  4. Select an element from the dropdown.
  5. Remove all elements from the array using the corresponding array mutation methods.

Test case: https://jsbin.com/qufitil/edit?html,output

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants