Skip to content
This repository has been archived by the owner on Jan 15, 2021. It is now read-only.

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

Open
mgpGit-zz opened this issue Jan 6, 2021 · 2 comments
Open

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

mgpGit-zz opened this issue Jan 6, 2021 · 2 comments
Labels

Comments

@mgpGit-zz
Copy link

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 Aidurber added the bug label Jan 7, 2021
@Aidurber
Copy link
Owner

Aidurber commented Jan 7, 2021

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

@mgpGit-zz
Copy link
Author

mgpGit-zz commented Jan 7, 2021

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!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants