click event is fired two times #1
Comments
nice catch, thanks @DanielVyskoc. should be fixed now. |
Hi, Without this line, buttons are not clickable and your plugin is not usable. |
Hi @Cylix, thanks for spotting this. You're absolutely correct... I should've tested that more extensively. I've already pushed the fix of re-adding this line, and I'll push some more updates today. Thanks again! |
Hi, I was using video.dev.js (probably by mistake) back then. With "normal" minimalised version it is working as it should. I am not sure why it is working differently with dev version, but you can try it too. It is same with dev 4.12.7, executing onClick two times. |
... oh, great. More complicated than I thought. I'll try out both and see Thanks for these comments, y'all.
|
This is related to #6 and #7, the correct way to handle clicks is not calling onClick, but using the handleClick method, like so
|
Check line 11 - this.on('click', this.onClick);
It is redundant. onClick function will run even without it. Currently click event is fired two times when button is clicked.
The text was updated successfully, but these errors were encountered: