-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
Issue when using React Splide in Material tailwind library #69
Comments
Hi @Sergey98Am I will work on this, kindly assigne it to me. |
Hi @deepakrh185․ Thanks for responding |
kindly assigne the bug to me @Sergey98Am |
@Sergey98Am try to add check it works or not !! |
@deepakrh185. Tried it, unfortunately, it didn't work |
@Sergey98Am can you brief me the scenario what it exactly happens? |
@deepakrh185. Clicking the thumbnails slider doesn't change the main slider at the same time |
@Sergey98Am I've got similar problem. In my case I have thumbnails on a page and detail view in a dialog. Fixed it by the following workaround: <Splide
ref={(mainRefNode) => {
if (!mainRefNode) return;
setTimeout(() => {
mainRefNode.sync(thumbsRef.current.splide);
mainRefNode.go(thumbsRef.current.splide.index); // calling "go" here since "sync" doesn't go to appropriate slide
}, 0);
}}
...
>... </Splide> |
Checks
Version
0.7.12
Description
I use React Splide in Material Tailwind library's modal dialog. I need to synchronize the main and thumbnail sliders, but in useEffect hook the sync() function doesn't work. The same issue also occurs when using the Headless UI library's modal instead of Material Tailwind (When the modal is built manually without the library,the sync works)
Reproduction Link
No response
Steps to Reproduce
Expected Behaviour
I need the sync() function to work in useEffect when using the Material Tailwind library
The text was updated successfully, but these errors were encountered: