You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When initializing in description.js, all clickevents on document are removed instead of only the newly added one.
Specifically, this causes a problem with "collapse" in Bootstrap v4. Here it also listens to click on the document, which doesn't work after this function removes all click eventlistener on document. Line 198:
We have a similar problem with a megamenu that relies on the existing click handler. When Able initialises, its click handler replaces the global one shared with our menu and results in an audible "Hi!" on the most recent stable tag (fixed in #576). However, when the audio stops, it unbinds the click listener and doesn't restore the old one.
I can think of a few fixes for this, but before I offer a pull request, is this functional test of an audible noise still necessary? This is effectively a unit test that I would suggest should not be in production code - I would think the mere existence of the SpeechSynthesisUtterance class would be enough of a test at runtime, given the support it enjoys in all major browsers
When initializing in description.js, all clickevents on document are removed instead of only the newly added one.
Specifically, this causes a problem with "collapse" in Bootstrap v4. Here it also listens to click on the document, which doesn't work after this function removes all click eventlistener on document. Line 198:
ableplayer/scripts/description.js
Lines 187 to 208 in b0635e8
The text was updated successfully, but these errors were encountered: