kupriyanenko / jbone

JavaScript Library for Events and DOM manipulation. Replaces jQuery for Backbone (2.5kb gzipped)
http://jbone.js.org
MIT License
279 stars 35 forks source link

Fix: jBone's `trigger('click')` didn't work in Firefox and stopped working in new Chrome #58

Closed iaroslavshvets closed 7 years ago

iaroslavshvets commented 7 years ago

Fix: jBone's trigger('click') didn't work in Firefox and stopped working in new Chrome after last update: https://www.chromestatus.com/features/5718803933560832

iaroslavshvets commented 7 years ago

Is not a fix in all cases :((

makc commented 7 years ago

я тоже не понял, как это фиксит проблему. и саму проблему не очень. по ссылке говорится, что клик должен работать:

'click' is the only event that is a legacy permitted case.

далее, раньше в ФФ програмный клик реально не работал, если элемент не был всунут в документ - если речь об этой проблеме, фикс должен был бы по идее его цеплять перед и отцеплять после клика. но по уму эта логика д б на стороне приложения.

iaroslavshvets commented 7 years ago

Last commit is actually correct, only the previous didn't fix all cases. I understand what you mean, but element is inside DOM, so it's not the case.