Blazor.SplideJS AUTOPLAY BUG #426
Replies: 6 comments
-
In first render when slider init there no slides cuz it will be loaded by fetching from apis |
Beta Was this translation helpful? Give feedback.
-
For now i need to use little trick and acces component directly .forceMountAutoplayComponentIfExsist() |
Beta Was this translation helpful? Give feedback.
-
I have no knowledge on Blazor. Converting this to discussions. |
Beta Was this translation helpful? Give feedback.
-
@NaotoshiFujita |
Beta Was this translation helpful? Give feedback.
-
@NaotoshiFujita there was shown a little trick what i do for reinit autoplay each time when collection of slides was changed. i add extra fynction to Splide instance and then when slides was changed by wasm it calls |
Beta Was this translation helpful? Give feedback.
-
Okay now I understand. |
Beta Was this translation helpful? Give feedback.
-
Hi. I'm asp.net developer. Im ported this library to work with Blazor.
splide/src/js/components/autoplay/index.js
Line 72 in b859e88
this line said that if there no pages for autoplay it wont even mount autoplay.
Problem is that .refresh() not remount Autoplay or other modules. So it build one time and no updates later.
in Blazor it changes DOM autamtically
Products is list of items. When it chage it will call rerender for blazor component.
when collection changed i call .refresh() for slider to get slider know about new slides
So posible solutions is:
Beta Was this translation helpful? Give feedback.
All reactions