-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Interchange does not work on img & div #9054
Comments
Multiple issues here. First, as described in the Javascript section of the Foundation 6 documentation, But actually you don't need to Another issue is your interchange syntax:
Your last error is that you are using Foundation 5 CSS with Foundation 6 JS. Here is a working CodePen: https://codepen.io/anon/pen/qNKXGV |
I must be blind or something that i didnt see the parentheses syntax update. Now everything is good. However the syntax is really strict that:
Thanks anyway |
Hi currently i am using data-interchange for images on different breakpoints, |
Interchange at foundation 6.2.3 does not work on img and div
Console shows "Uncaught ReferenceError: We're sorry, 'interchange' is not an available method for this element."
Same DOM works on foundation 5.
How can we reproduce this bug?
What did you expect to happen?
Change when you resize browser
What happened instead?
Nothing at all. No image, no change on DOM.
Test case:
Foundation 5 working example:
Foundation 6 Not working example
The text was updated successfully, but these errors were encountered: