Aidurber / react-picky

Yet another React multiselect. With checkbox support instead of tags.
MIT License
79 stars 35 forks source link

IE11 isn't working in latest version of Picky #229

Open mgpGit-zz opened 3 years ago

mgpGit-zz commented 3 years ago

Version

v5.3.2

Here's what went wrong:

The page throws a generic JavaScript Syntax error "SCRIPT1002"

Drilling into it seems to point to this:

const debounce = (fn, delay) => { let timeoutID = null; return function(...args) { if (timeoutID) { clearTimeout(timeoutID); } const that = this; timeoutID = setTimeout(() => { fn.apply(that, args); }, delay); }; };

NOTE: Using version 5.2.5 works correctly in IE11.

Example

Create a Code Sandbox, you can fork this: Demo Picky

Sorry - Code Sandbox doesn't work in IE11....

Thoughts?

Aidurber commented 3 years ago

Hmm, I moved from TSDX to Rollup + ESBuild since 5.2.5, things mustn't be being polyfilled.

mgpGit-zz commented 3 years ago

Hey @Aidurber -

I'd prefer to just get IE11 working with the latest, but until then I need to support singleSelectPlaceholder and version 5.2.5 does not support that. What is the recommended approach to accomplish singleSelectPlaceholder in previous versions of picky?


Update... I was able to use version 5.3.0 which has the singleSelectPlaceholder available. Version 5.3.1 must be where things broke. Hopefully the versions after 5.3.0 don't have any critical fixes I need.

I'll keep an eye on this for updates. Thanks!