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 JS broken in product edit form, prevents JS to load (jquery-ui / jquery incompatibility) #7722

Closed
stephanegigandet opened this issue Nov 18, 2022 · 0 comments · Fixed by #7723
Assignees

Comments

@stephanegigandet
Copy link
Contributor

In the product edit form, adding new nutrients is not possible, and the autocomplete does not work.

Alex G.
  [il y a 7 minutes](https://openfoodfacts.slack.com/archives/C02KVRT2C/p1668776249943629?thread_ts=1668770952.609629&cid=C02KVRT2C)
 $.uniqueSort() is a jQuery 3.0+ function ([link](https://api.jquery.com/jQuery.uniqueSort/)). Prior to jQuery 3, it was $.unique().


Alex G.
  [il y a 6 minutes](https://openfoodfacts.slack.com/archives/C02KVRT2C/p1668776283522929?thread_ts=1668770952.609629&cid=C02KVRT2C)
Uncaught TypeError: t.uniqueSort is not a function
    o widget.js:528
    _classes widget.js:541
    _toggleClass widget.js:578
    _addClass widget.js:566
    _create autocomplete.js:94
    t.widget/</r[t]< widget.js:132
    _createWidget widget.js:330
    l][e widget.js:87
    t.widget.bridge/t.fn[e]/< widget.js:270
    jQuery 2
    e widget.js:262
    <anonymous> product-multilingual.js:1014
    jQuery 4
widget.js:528:20
    o widget.js:528
    _classes widget.js:541
    _toggleClass widget.js:578
    _addClass widget.js:566
    _create autocomplete.js:94
    t.widget/</r[t]< widget.js:132
    _createWidget widget.js:330
    l][e widget.js:87
    t.widget.bridge/t.fn[e]/< widget.js:270
    jQuery 2
    e widget.js:262
    <anonyme> product-multilingual.js:1014
    jQuery 4

Probably due to the dependencies upgrade a few weeks ago.

@stephanegigandet stephanegigandet self-assigned this Nov 18, 2022
stephanegigandet added a commit that referenced this issue Nov 18, 2022
alexgarel pushed a commit that referenced this issue Nov 21, 2022
fix: downgrade jquery-ui #7722
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

Successfully merging a pull request may close this issue.

1 participant