i have a paper-dropdown-menu inside a repeating template, this dropdown have an on-iron-select event, problem is the event fires for each element being binded on the element load, how can i prevent this.
<paper-dropdown-menu label="Status" required >
<paper-menu selected="{{item.status}}" id="ddlStatus" attr-for-selected="value" on-iron-select="_statusChanged" class="dropdown-content">
<template is="dom-repeat" items="{{statusList}}">
<paper-item value="{{item}}">{{item}}</paper-item>
</template>
</paper-menu>
</paper-dropdown-menu>
After struggling for hours i found a solution, which is not to use on-iron-select event and use on-iron-activate instead, this will only fires when an item is selected and will not fire while the drop-menu is being populated and default item set to it
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments