paper-input
paper-input copied to clipboard
paper-input type="number" input events missing
Description
On <paper-input type="number"></paper-input>
elements, the input
event does not fire when using the arrow buttons:
The reason is that the input
events from the keyboard have composed: true
, but the input
events from the arrow buttons have composed: false
; which means that these events don't bubble out of Shadow DOM.
I'm not sure, maybe this is a bug in Chrome and the event should also be composed
. But if it is intended behavior in Chrome, it might be necessary to forward the input
event in paper-input, like the change
event.
Live Demo
http://jsbin.com/hopecaqete/edit?html,console,output
Steps to reproduce
- Click the up or down arrow buttons on the paper-input
Browsers Affected
- [x] Chrome
- [ ] Firefox
- [ ] Safari 9
- [ ] Safari 8
- [ ] Safari 7
- [ ] Edge
- [ ] IE 11
- [ ] IE 10