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 slider data-start float bug #10594

Merged
merged 2 commits into from
Aug 29, 2017

Conversation

knabe
Copy link
Contributor

@knabe knabe commented Aug 28, 2017

@IamManchanda per your request

data-start float with a trailing 0 is typed as a string. This causes an undesired concatenation breaking the slider.

#10579

@IamManchanda IamManchanda self-assigned this Aug 28, 2017
@IamManchanda IamManchanda self-requested a review August 28, 2017 21:05
@IamManchanda
Copy link
Contributor

@kball This looks cool ( https://www.w3schools.com/jsref/jsref_parsefloat.asp )
Is this good to go and Can we merge this ?

@kball
Copy link
Contributor

kball commented Aug 29, 2017

OK, so from what I can tell the reason this shows up with start and not with end is because that '+' turns it into a string concatenation, while if you try to use '-' it will actually transform it to numbers. Innnteresting. Ok, good to go. Thanks for the PR!

@kball kball merged commit bacdaa0 into foundation:develop Aug 29, 2017
@knabe
Copy link
Contributor Author

knabe commented Aug 29, 2017

glad I could help!

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