Open 43081j opened 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.
iron-selectable
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.
this.async(...)
As a temporary workaround, you can call stopPropagation on the tap event.
stopPropagation
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 theiron-selectable
handler runs first.