jquery / jquery-ui

The official jQuery user interface library.
https://jqueryui.com
Other
11.25k stars 5.33k forks source link

Autocomplete as a combobox does no more show the dropdown button #2295

Open fredericDelaporte opened 2 days ago

fredericDelaporte commented 2 days ago

The autocomplete widget as a combobox does no more show its dropdown button.

That is visible in the documentation examples, here.

mgol commented 1 day ago

Thanks for the report. Does the issue you describe exist when jQuery UI 1.12.1 is used or only with jQuery UI 1.13.0 or newer?

fredericDelaporte commented 1 day ago

No idea about when this trouble has appeared on the jQuery UI documentation site.

On a private application I am working on, the trouble is not there on the commit preceding an upgrade from jQuery UI v1.13.3 to v1.14.0, and is there on the commit doing that upgrade.

mgol commented 21 hours ago

Thanks for the info! I narrowed it down to be caused by disabling back compat (i.e. setting $.uiBackCompat to false in jQuery UI 1.13 or older or by NOT setting it to true in jQuery UI 1.14). What's left is to understand why this flag matters here and if there's some logic we should move to not be dependent on this flag.

mgol commented 21 hours ago

Fortunately, this was just an issue with the demo which used deprecated button options: icons and text.

I fixed the demos in PR #2296.