Skip to content

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

Open
iansvo wants to merge 1 commit intokenwheeler:masterfrom
iansvo:bug/extra-div-without-row-param
Open

Fix bug where single row slider is still generating extra row markup#3979
iansvo wants to merge 1 commit intokenwheeler:masterfrom
iansvo:bug/extra-div-without-row-param

Conversation

@iansvo
Copy link
Copy Markdown

@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
Copy Markdown

hissssst commented May 30, 2023

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

@hissssst
Copy link
Copy Markdown

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