Closed rokity closed 6 years ago
paper-dropdown-menu listens for iron-select and iron-deselect events. When you click on an item paper-listbox fires firstly iron-deselect then iron-select. On deselect paper-dropdown-menu drops own selected-item property and then on select it resets that property for an item you've choosen.
It seems dropping isn't needed here. Possibly it's useful for multi selection when user can deselect an item. If it is we can add if
condition this.contentElement.multi === false
to prevent dropping.
Watch this stupid example:
Why
selecte-item-changed
is called two time?