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

Input field as label makes the slider handle to move. #156

Open
albcl opened this issue Jun 25, 2019 · 1 comment
Open

Input field as label makes the slider handle to move. #156

albcl opened this issue Jun 25, 2019 · 1 comment

Comments

@albcl
Copy link

albcl commented Jun 25, 2019

I know that there is a way to customise the labels but I can't find a way of giving them a bit more of functionality and not just only minor styling changes.

I'm trying to replace them by input fields so you can either drag the handle or, by clicking in the label, type the amount in it. After that, the slider will receive the new value and will move to the new position.

I would like to just prevent the slider to move when clicking inside the input field, also the slider to allow me to type something in the input field (currently it is like if it was disabled and I can't even type in it)

I hope it makes sense. Here is a quick sample: https://codepen.io/anon/pen/orexdG

@albcl albcl changed the title Input field as label makes the slider hander to move. Input field as label makes the slider handle to move. Jun 25, 2019
@egeniegithub
Copy link

image

You can try something like that.. hide the actual labels if you want by overriding the CSS.
and then utilize your on input fields as you like.

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

No branches or pull requests

2 participants