PolymerElements / paper-dropdown-menu

A Material Design browser select element
https://www.webcomponents.org/element/PolymerElements/paper-dropdown-menu
61 stars 107 forks source link

how to get selected option #277

Open ArGaspar opened 6 years ago

ArGaspar commented 6 years ago

Description

Im using on-iron-select="_itemSelected" and

  Polymer({
    _itemSelected : function(e) {
    var selectedItem = e.target.selectedItem;
    if (selectedItem) {
        console.log("selected: " + selectedItem.value);
    }
}
});

to get the value of the menu but I get: listener method _itemSelected not defined

Is there another method to get the selected Menu?

Ankita-G-Mudgal commented 6 years ago

can u create an example for this in fiddle or something?