Skip to content

Check current viewport against responsive settings on initial load (fixes #2439)#2440

Open
John-Youngblood wants to merge 1 commit intoakiran:masterfrom
John-Youngblood:master
Open

Check current viewport against responsive settings on initial load (fixes #2439)#2440
John-Youngblood wants to merge 1 commit intoakiran:masterfrom
John-Youngblood:master

Conversation

@John-Youngblood
Copy link
Copy Markdown

@John-Youngblood John-Youngblood commented Nov 20, 2025

This PR adds a manual check against the responsive query when the Slider component initially loads. This will make sure the Slider pulls in any related responsive settings based on the current viewport when it first renders. The responsive.spec.tsx test for playwright was also updated to catch this edge case. It's initial viewport is now one that hits a responsive breakpoint instead of the default. This fixes issue #2439

@John-Youngblood
Copy link
Copy Markdown
Author

@akiran let me know if there is any other info on this PR and the related issue you would like me to provide.

@ivansanchez-oyaso
Copy link
Copy Markdown

HI! I ran into the same issue and ended up implementing the same solution. Then I found your PR 😊
Just wanted to let you know I tested it on my side and it’s working perfectly.

Thanks!

@neuhaus-j
Copy link
Copy Markdown

@akiran Any update on this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants