paper-listbox
paper-listbox copied to clipboard
on-iron-activate fired before selected property changed
Description
The on-iron-activate
event is fired before the selected
property changes. This means that it is impossible to find out the currently selected index in the listbox in the hadler for on-iron-activate
.
While other events, like on-iron-select
fire after the selected
property has changed, on-iron-activate
is the only event that can be used to detect taps on items that are currently selected.
Expected outcome
In the handler for on-iron-activate
, the selected
property is properly set.
Actual outcome
In the handler for on-iron-activate
, the previous selected
property is set (or undefined
if tapped for the first time).
Live Demo
https://glitch.com/edit/#!/ubiquitous-taker?path=public/my-element.html:25:0
Browsers Affected
It should affect all browsers, since it's an implementation issue. Only tested on Chrome.
- [x] Chrome
- [x] Firefox
- [x] Safari 9
- [x] Safari 8
- [x] Safari 7
- [x] Edge
- [x] IE 11
- [x] IE 10