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
When using a Carousel component inside a Modal, the Carousel doesn't honor the initial selectedIndex or startIndex prop when the Modal opens, despite the binding being set correctly. This only occurs when the Carousel is nested inside a Modal - the binding works correctly when the Carousel is used independently outside of a modal. It is more obvious in the repro and example video. Notice how when opening the modal the carousel's index does not match the index of the signal.
I recognize that this might be a limitation of using modals with stateful components nested inside. If that is the case and it's written in the documentation I will close this issue. Otherwise I think it would be best to state the limitations somewhere clear in the docs.
The text was updated successfully, but these errors were encountered:
Which package is affected?
Headless Kit
Describe the bug
When using a Carousel component inside a Modal, the Carousel doesn't honor the initial
selectedIndex
orstartIndex
prop when the Modal opens, despite the binding being set correctly. This only occurs when the Carousel is nested inside a Modal - the binding works correctly when the Carousel is used independently outside of a modal. It is more obvious in the repro and example video. Notice how when opening the modal the carousel's index does not match the index of the signal.nested-carousel-bug.mp4
Reproduction
https://github.com/Kesmek/nested-carousel-bug
Steps to reproduce
bun start
System Info
Additional Information
I recognize that this might be a limitation of using modals with stateful components nested inside. If that is the case and it's written in the documentation I will close this issue. Otherwise I think it would be best to state the limitations somewhere clear in the docs.
The text was updated successfully, but these errors were encountered: