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

Cannot read property 'autocomplete' of undefined #38

Open
sami-tuf opened this issue Sep 21, 2020 · 1 comment
Open

Cannot read property 'autocomplete' of undefined #38

sami-tuf opened this issue Sep 21, 2020 · 1 comment

Comments

@sami-tuf
Copy link

I have been facing the error Cannot read property 'autocomplete' of undefined only in case if I have another autocomplete/select2 field in same page.

But it was fine after following update
Please update following change

if (jQuery.ui.autocomplete !== undefined)
to
if (jQuery.ui && jQuery.ui.autocomplete !== undefined)

@andersmmg
Copy link

Thanks, I had the same issue and the fix was very similar

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

2 participants