Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue while destructuring this.$('.selector') in IE - 11 #280

Open
pragatheeswaranshf opened this issue Jul 24, 2020 · 0 comments
Open

Issue while destructuring this.$('.selector') in IE - 11 #280

pragatheeswaranshf opened this issue Jul 24, 2020 · 0 comments

Comments

@pragatheeswaranshf
Copy link

pragatheeswaranshf commented Jul 24, 2020

We have this code in one of our components

 const [element] = this.$('.test-selector');

This worked fine until we started adding @ember/jquery in our application. When using this addon, this piece of code crashes in IE-11 with the error

Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.

This is crashing only with IE - 11. Works when using the native jQuery provided by ember (without this addon). Any idea on what might be causing the issue with the addon? Here is a link to reproduce this issue.

selector-output

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

No branches or pull requests

1 participant