jquery-ui icon indicating copy to clipboard operation
jquery-ui copied to clipboard

Autocomplete Widget causes some other jquery errors

Open igmo1910 opened this issue 4 years ago • 6 comments

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?

igmo1910 avatar Oct 23 '21 23:10 igmo1910

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 avatar Oct 27 '21 17:10 mgol

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

mgol avatar Oct 28 '21 13:10 mgol

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

igmo1910 avatar Oct 28 '21 20:10 igmo1910

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/

mgol avatar Oct 29 '21 21:10 mgol

Thanks for your answer.

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

igmo1910 avatar Oct 29 '21 22:10 igmo1910

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

mgol avatar Nov 15 '21 17:11 mgol