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

fix: Revert "fix: remove unused jquery-ui safe-active-element module (#10708)" #10924

Conversation

jayaddison
Copy link
Contributor

This reverts commit 9407e86.

What

After replicating the nutrient autosuggest selection problem (one of a few JavaScript-related problems) described in #10861 in a local development instance, I attempted a revert of #10708 because the name of the dependency seems similar to a missing function that appeared in the JavaScript console as an error:

Uncaught TypeError: e.ui.safeActiveElement is not a function

After reverting #10708, the error no longer appears and I'm able to select entries from the nutrient autosuggest as expected.

Screenshot

pr-10708-revert-testing.mp4

Related issue(s) and discussion

@jayaddison jayaddison requested a review from a team as a code owner October 22, 2024 15:54
Copy link

sonarcloud bot commented Oct 22, 2024

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 49.07%. Comparing base (dc04d18) to head (4f25254).
Report is 713 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #10924      +/-   ##
==========================================
- Coverage   49.54%   49.07%   -0.48%     
==========================================
  Files          67       77      +10     
  Lines       20650    22215    +1565     
  Branches     4980     5310     +330     
==========================================
+ Hits        10231    10901     +670     
- Misses       9131     9980     +849     
- Partials     1288     1334      +46     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@stephanegigandet stephanegigandet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thank you @jayaddison !

@stephanegigandet stephanegigandet merged commit d290c54 into openfoodfacts:main Oct 23, 2024
13 checks passed
@jayaddison
Copy link
Contributor Author

Thanks @stephanegigandet!

@jayaddison jayaddison deleted the issue-10861/js-restore-safe-active-element-module branch October 23, 2024 10:13
stephanegigandet pushed a commit that referenced this pull request Oct 24, 2024
🤖 I have created a release *beep* *boop*
---


##
[2.47.0](v2.46.0...v2.47.0)
(2024-10-24)


### Features

* api docs remove query string from get by barcode and add security to
solve openapi linter errors/warnings
([#10922](#10922))
([b7aefbd](b7aefbd))
* Eco-Score improvements and change of scale: A+ to F
([#10829](#10829))
([87df665](87df665))


### Bug Fixes

* add googleOther bot
([#10912](#10912))
([d56760a](d56760a))
* allow CORS requests for product image move
([#10920](#10920))
([967a47e](967a47e))
* attribute for product without new nutriscore data
([#10915](#10915))
([c413719](c413719))
* cosmetic changes for new Eco-Score grades
([#10921](#10921))
([6e7dbfa](6e7dbfa))
* Revert "fix: remove unused jquery-ui safe-active-element module
([#10708](#10708))"
([#10924](#10924))
([d290c54](d290c54))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
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 this pull request may close these issues.

Release v2.45.0 broke the ability to add nutrients and other features are showing issues
3 participants