Closed jiettu closed 8 years ago
Hi @jiettu, please take a look at how to setup annotated event listeners here https://www.polymer-project.org/1.0/docs/devguide/events#annotated-listeners In your case, you need to have something like:
<paper-dropdown-menu id="fromMenu" label="From Account" on-paper-dropdown-close="fromAccountChanged">
...
fromAccountChanged: function() {
console.log(this.$.fromMenu.selectedItem);
}
You can also listen for the iron-select
event, which will contain the selected item in the detail (aka event.detail.item
will be the newly selected item) http://jsbin.com/reseva/2/edit?html,output
Closing this, let me know if the problem persists (possibly with a jsbin or code snippet), and I'll reopen this ;)
Hi, I am creating a custom element, where I have used paper-dropdown--menu. I want to handle 'selected item change' event. But it seems that somehow it is unable to locate the event handler. What am I doing wrong? My code: