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

Fix bug where single row slider is still generating extra row markup #3979

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

iansvo
Copy link

@iansvo iansvo commented Jun 13, 2020

Fixed options check to ensure extra row markup only gets created where there is more than 1 row.

Added extra class to the row element to make its purpose less ambiguous.

For several years now, I've noticed that a single row slider still generates this extra markup. Since the markup is just an empty div, its purpose is not exactly clear and thus has tripped up several developers I've spoken with.

Since the default row value is 1, this seems like a simple and appropriate change to make the option work as expected and have the resulting markup be more clear for the developer.

Fixed options check to ensure extra row markup only gets created where there is more than 1 row.

Added extra class to the row element to make it’s purpose less ambiguous.
@hissssst
Copy link

hissssst commented May 30, 2023

This has fixed the bug I've been trying to catch for whole three days, thanks!

@hissssst
Copy link

I just don't understand how this component can be that much broken for 3 years

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.

2 participants