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

Use range input and min, max, step attributes #39

Closed
martinAnsty opened this issue Oct 30, 2013 · 1 comment
Closed

Use range input and min, max, step attributes #39

martinAnsty opened this issue Oct 30, 2013 · 1 comment
Assignees
Labels
Discussion Discussing the topic

Comments

@martinAnsty
Copy link

This seems almost too obvious to me, so chances are I'm missing something but: would it be better to use a range type input rather than a text input? As well as being more logical it would also mean you could read the min, max and step options from the associated attributes.

ie. The following two would be equivalent:

<input type="text" value="10;500" data-step="5">

and

<input type="range" min="10" max="500" step="5">

Using <input type="range"> actually works already, but the attributes aren't read.

@ghost ghost assigned IonDen Oct 30, 2013
@IonDen
Copy link
Owner

IonDen commented Oct 30, 2013

Hi, Martin. In first builds of range slider i was using type="range" in base input field. But later i found some crossbrowser bugs in doing so. In old IE browsers. So i can't do that now, maybe few years later than i will drop IE<10 support.

@IonDen IonDen closed this as completed Oct 30, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Discussion Discussing the topic
Projects
None yet
Development

No branches or pull requests

2 participants