Open kristfal opened 7 years ago
It seem to fail in Chrome too, but if "localize" is not used, it works:
Fails:
<paper-dropdown-menu label="TEST">
<paper-listbox class="dropdown-content" selected="true" attr-for-selected="name">
<paper-item name="all">{{localize('all')}}</paper-item>
<paper-item name="true">{{localize('yes')}}</paper-item>
<paper-item name="false">{{localize('no')}}</paper-item>
</paper-listbox>
</paper-dropdown-menu>
Works:
<paper-dropdown-menu label="TEST">
<paper-listbox class="dropdown-content" selected="true" attr-for-selected="name">
<paper-item name="all">All</paper-item>
<paper-item name="true">Yes</paper-item>
<paper-item name="false">No</paper-item>
</paper-listbox>
</paper-dropdown-menu>
Same issue overhere it states that it is solved but it is not. https://github.com/PolymerElements/app-localize-behavior/issues/81 Is there an outlook when this is going to be solved.
Description
Using the following HTML:
Then executing:
Expected outcome
The dropdown selects the item according to the index for all browsers.
Actual outcome
Chrome, Firefox and the lot of other evergreens select the dropdown item. Safari does not select item.
However, if the user manually selects an item from the dropdown, then any consecutive call with
_setDropdownIndex
will work.Browsers Affected