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

Add possibility to position slider dot to max or min value if min, max and modelValue are equal #688

Open
kbizukov opened this issue Sep 26, 2023 · 1 comment
Labels

Comments

@kbizukov
Copy link

Describe the feature

I have multiple dependent sliders (for example two: main and secondary) and if I change dot position in main - the min or max value in secondary must be changed. And there may be situations where secondary slider has only one value to choose. In such case its props min, max and model-value are equal. And dot is placed to the left end as min value, but I want it to be as max value at the right end of slider.

Describe the solution you'd like

It would be useful to add another prop, for example. adjustDot: 'min': 'max' to decide to which side of slider (right or left) dot should be placed if props.min === props.max && props.max === props.modelValue

Additional context (If there is no relevant content, please delete the block)

link to reproduce

I also tried to use prop direction="rtl" but it didn't work.

@domoratskii
Copy link

add it pls. same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants