You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First thing is , the code in website doesnt set the height to the div, moreover, i installed it using npx jsrepo add and selecting from the list, and it didnt work , there was a error
ImageTrail.jsx:114 Uncaught TypeError: Cannot read properties of undefined (reading 'DOM')
at ImageTrailVariant1.showNextImage (ImageTrail.jsx:114:27)
at ImageTrailVariant1.render (ImageTrail.jsx:99:12)
at ImageTrail.jsx:84:40
it was because the image div rendered was missing the class .content__img, and content__img-inner so i had to add them
Reproduction Link
No response
Steps to reproduce
npx jsrepo add
select Image Trail
install it
Copy and paste code snippet from the docs website
Validations
I have checked other issues to see if my issue was already reported or addressed
The text was updated successfully, but these errors were encountered:
The error occurs because the querySelectorAll(".content__img") selector isn't finding the correct elements. In Image Trail component, the elements have the class name but are missing the content__img class. Let's fix this by adding the missing class:
The changes made:
Added content__img class to the outer div
Added content__img-inner class to the inner div
These classes are required for the ImageTrail variants to properly select and manipulate the elements. The error should now be resolved as the selectors will be able to find the elements with the correct class names.
Describe the issue
First thing is , the code in website doesnt set the height to the div, moreover, i installed it using npx jsrepo add and selecting from the list, and it didnt work , there was a error
ImageTrail.jsx:114 Uncaught TypeError: Cannot read properties of undefined (reading 'DOM')
at ImageTrailVariant1.showNextImage (ImageTrail.jsx:114:27)
at ImageTrailVariant1.render (ImageTrail.jsx:99:12)
at ImageTrail.jsx:84:40
it was because the image div rendered was missing the class .content__img, and content__img-inner so i had to add them
Reproduction Link
No response
Steps to reproduce
npx jsrepo add
select Image Trail
install it
Copy and paste code snippet from the docs website
Validations
The text was updated successfully, but these errors were encountered: