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
Good find! Based on that, here's a workaround you can add to your js so you do not have to change the sourcecode (and can keep on using the CDN).
Just add it in your $(document).ready.
var selects = $("select");
if (selects.length > 0 && selects[0].dispatchEvent) {
if (typeof Event === "function") {
try {
event = new Event("change", { bubbles: true });
} catch(e) {
// reduce the original function to the working version
$.fn.triggerNative = function (eventName) {
var el = this[0];
var event = document.createEvent("Event");
event.initEvent(eventName, true, false);
el.dispatchEvent(event);
};
}
}
}
On the built-in Android browser on Android versions < 5.0, the select box throws a js error:
**
Uncaught Type Error: Illegal constructor**
The culprit is in line 136:
My propsed solution would be to wrap it inside a try catch, so the old-fashioned way could be triggered:
The text was updated successfully, but these errors were encountered: