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

Firefox doesn't recognize [data-glide-el="track"] attribute on loading #694

Open
Epizefiri opened this issue Jul 4, 2024 · 3 comments
Open

Comments

@Epizefiri
Copy link

Hello there,
I'm developing a solution to use Glide.js inside Grapes.js ( A nice block editor ).

Grape.js is using iFrames, when i try to load a slider inside an iFrame I get these two errors on my firefox console

[Glide warn]: Could not find track element. Please use [data-glide-el="track"] attribute.

and

Uncaught TypeError: i.track is undefined

This is weird because the attribute is in the correct position ( and everything works on Chrome ).

If i remove the condition

if (exist(t)) { on row 1610 of glide.js 3.6.1 my sliders are working fine.

@Epizefiri
Copy link
Author

#675 I see that the same condition have been discussed here

@jedrzejchalubek
Copy link
Member

@Epizefiri Could you prepare MR that removes this exist check entirely? It was purely for development experience to provide a nice error instead of "something is undefined" but it looks like it causes more troubles

@Epizefiri
Copy link
Author

@germandmg did it for me #695

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants