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

Autocomplete Widget causes some other jquery errors #1999

Open
igmo1910 opened this issue Oct 23, 2021 · 6 comments
Open

Autocomplete Widget causes some other jquery errors #1999

igmo1910 opened this issue Oct 23, 2021 · 6 comments

Comments

@igmo1910
Copy link

I have used Autocomplete Widget on our project. But when I import
<script src="https://code.jquery.com/ui/1.13.0/jquery-ui.js"></script>
to our index.cshtml page, it causes our datepicker jquery widget to be seen with a wrong css. As far as we debugged, Autocomplete Widget has some datepicker functions. How could we excract that kind of unused functions?

@mgol
Copy link
Member

mgol commented Oct 27, 2021

Thanks for the report. Can you provide a test case on JS Bin? Without a test case, there's not much we can do.

@mgol
Copy link
Member

mgol commented Oct 28, 2021

Also, does the issue appear only with UI 1.13.0 or with 1.12.1 as well?

@igmo1910
Copy link
Author

Both 1.13.0 and 1.12.1 causes the same problem.

My project is to complicated to provide a test case. But I can share the screenshots.

In first screenshot, you can see the normal view of the page.

If we add the

<script src="/assets/js/pages/custom/index/jquery-ui.js"></script>

in html, it turns into second screenshot. Datepicker component has a weird appearence.

Without jquery-ui js

With jquery-ui js

@mgol
Copy link
Member

mgol commented Oct 29, 2021

OK, if the issue is already in 1.12 then we might not be able to do much; see the project status at https://blog.jqueryui.com/2021/10/jquery-maintainers-update-and-transition-jquery-ui-as-part-of-overall-modernization-efforts/

@igmo1910
Copy link
Author

Thanks for your answer.

Could we say, if we use jquery-ui’s datepicker, we won’t get the same error?

@mgol mgol removed the Needs info label Nov 15, 2021
@mgol
Copy link
Member

mgol commented Nov 15, 2021

@igmo1910 I can't answer that question, you'll need to check by yourself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment