Selectr
Selectr copied to clipboard
Mobile Maximum call stack size exceeded
Hello, if used in mobile device ( also in browser ispector ) we have problem with add method to add options in the selectr
It seems that the change event keeps being called until a fatal error this.el.dispatchEvent(new Event("change"))
You can check the problem also in the official demo
Can you help please?
Thanks
Marco
I'll look into this.
I have the same problem. The "change" event fires 43 times. "NativeDropdown: false" does not solve the problem. Selectr 2.4.4, 2.4.6
The entire codebase is a mess and needs refactoring.
hi, a solution for this?
Hi, do we have a solution?
Here is the quick fix for this bug.
Put it somewhere in your code before you start using Selectr.
also nativeDropdown
should be set to false
Object.defineProperty(Selectr.prototype, 'mobileDevice', {
get() { return false; },
set() {},
enumerable: true,
configurable: true
});