PolymerElements / iron-selector

Manages a list of elements that can be selected
32 stars 55 forks source link

Can't change index from tap event #114

Open 43081j opened 8 years ago

43081j commented 8 years ago

Example: http://plnkr.co/edit/pIcvOOwpwsITthrnlM8R?p=preview

Steps:

If you have something inside an iron-selectable child which listens on tap event, it is incapable of setting the selected item.

This seems to be because iron-selectable catches any tap events and sets the selected item to the child which the event came from.

If you put the increment in the example inside this.async(...), it will work because the iron-selectable handler runs first.

bicknellr commented 8 years ago

As a temporary workaround, you can call stopPropagation on the tap event.