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

Javascript error on Google Chrome: Uncaught TypeError: $(...).foundation is not a function #5279

Closed
Tracked by #5513
stephanegigandet opened this issue Jun 2, 2021 · 3 comments
Labels
🐛 bug This is a bug, not a feature request. foundation Foundation is the CSS framework of Open Food Facts. JavaScript

Comments

@stephanegigandet
Copy link
Contributor

On Chrome, but not on Firefox, there is a javascript error that prevents some Foundation functions to work (in particular functions for the "equalizer" that resizes the height of the columns).

To reproduce:

  1. https://mq-en.openfoodfacts.dev/cgi/user.pl
  2. click on "This is a producer or brand account. "
  3. the columns are not resized and there is an error in the javascript console:
user.pl:689 Uncaught TypeError: $(...).foundation is not a function
    at HTMLInputElement.<anonymous> (user.pl:689)
    at HTMLInputElement.dispatch (jquery.js? [sm]:25)
    at HTMLInputElement.v.handle (jquery.js? [sm]:24)
@stephanegigandet stephanegigandet added 🐛 bug This is a bug, not a feature request. foundation Foundation is the CSS framework of Open Food Facts. JavaScript labels Jun 2, 2021
@svensven
Copy link
Contributor

svensven commented Jun 3, 2021

the example works without errors for me in chrome 90 & 91.

@stephanegigandet
Copy link
Contributor Author

@svensven thanks. it seems to be caused by the folksonomy engine user script, I forgot to test without it.

@CharlesNepote
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug This is a bug, not a feature request. foundation Foundation is the CSS framework of Open Food Facts. JavaScript
Projects
None yet
Development

No branches or pull requests

3 participants