Anyone get Swiper to work with Blazor yet? #5328
Replies: 4 comments 6 replies
-
Nevermind, looks like I just had some CSS interfering with Swiper. Looks like Swiper works fine with Blazor. |
Beta Was this translation helpful? Give feedback.
-
I'm writing a significantly-sized Blazor Server app at my company, and while I was able to get Swiper to "work" in the sense that the gallery initialized fine and all the Swiper features are functioning on first page load, AFAICT Swiper isn't actually compatible with Blazor. Blazor needs control-of/awareness-of all changes to the DOM, so that it can correctly model it on the server C# side and do incremental updates over its SignalR connection as intended. That need doesn't play well with Swiper's insertion of or changes to DOM objects. I think it might be possible to write a module to make Swiper compatible with Blazor that would be similar to what is being done for React, but until someone writes that module, they aren't compatible. |
Beta Was this translation helpful? Give feedback.
-
I have been trying work swiper in blazor wasm but its breaking This is totally issue with dom. and swiper is not compatible with blazor. Better is to go with flexbox horizontal scroll that will better till this get compatible perfectly |
Beta Was this translation helpful? Give feedback.
-
Found This Solution while i was trying to find an Alternative Thanks man really Helped me |
Beta Was this translation helpful? Give feedback.
-
When implementing Swiper everything seems to initialize ok (no javascript errors) but the images just roll/scroll off to the right of the screen after initialize.
Just wondering if Swiper is even compatible with Blazor (I'm using Blazor Server haven't tried WASM with Slider yet).
Beta Was this translation helpful? Give feedback.
All reactions