Closed NicolasRannou closed 8 years ago
Can not click on an element from "on-transitionend" callback.
... <paper-button raised on-transitionend="clickInput">Load data</paper-button> <input type="file" id="input" multiple=""> ... clickInput: function(){ // not working this.$.input.click(); }
If I use on-tap instead of on-transtionend the callback works properly.
Target element should be clicked.
click() doesn't do anything but this.$.input appear to return a well formatted element.
https://plnkr.co/edit/FvNnn4m1RroAQSoy7eQD?p=preview
You can't trigger file input from non-user interaction. For example, see http://jsbin.com/qusuqunece/edit?html,output
👍
Description
Can not click on an element from "on-transitionend" callback.
If I use on-tap instead of on-transtionend the callback works properly.
Expected outcome
Target element should be clicked.
Actual outcome
click() doesn't do anything but this.$.input appear to return a well formatted element.
Live Demo
https://plnkr.co/edit/FvNnn4m1RroAQSoy7eQD?p=preview
Steps to reproduce
Browsers Affected