Skip to content
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

updateOnMove doesn't update inline stlying width #694

Closed
2 tasks done
HendrikWismans opened this issue Mar 7, 2022 · 2 comments
Closed
2 tasks done

updateOnMove doesn't update inline stlying width #694

HendrikWismans opened this issue Mar 7, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@HendrikWismans
Copy link

Checks

Version

v3

Description

I'm update splide to v3 (from v2). The updateOnMove function doesn't work correct.

I want:

Mobile: splide 285px width
Large mobile: splide with 2 tiles
Desktop: 3 tiles

On initial page load on mobile width is correct. If you make your screen larger, the first calculated inline styling width is still available and not update.

note; on desktop destroy isn't working, that's another bug. (#693)

Reproduction Link

https://codepen.io/hendrik___/pen/LYOvWPo

Steps to Reproduce

Expected Behaviour

Update inline styling width.

@HendrikWismans HendrikWismans added the bug Something isn't working label Mar 7, 2022
@NaotoshiFujita
Copy link
Collaborator

Fixed in v4.0.0.
https://splidejs.com/guides/version4/#breakpoints

@HendrikWismans
Copy link
Author

Thansk! This works in v4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants