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

Slider (range): Strange effect when value is 0 #2804

Closed
gbayarri opened this issue Jul 25, 2022 · 2 comments
Closed

Slider (range): Strange effect when value is 0 #2804

gbayarri opened this issue Jul 25, 2022 · 2 comments

Comments

@gbayarri
Copy link

Describe the bug

When we have a range slider between a negative and a positive values, at the moment of reaching the 0 value, the slider suddenly jumps to the original value. Attached you can find a gif with the behavior:

ezgif-3-8f72027098

Reproducer

No response

PrimeVue version

3.10.0

Vue version

3.x

Language

ALL

Build / Runtime

Vue CLI App

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

No response

@gbayarri gbayarri added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Jul 25, 2022
@tugcekucukoglu
Copy link
Member

Please use min and max property of Slider.

@tugcekucukoglu tugcekucukoglu removed the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Jul 26, 2022
@gbayarri
Copy link
Author

I am using them:

<Slider 
    v-model="model" 
    :range="true" 
    :min="-5" 
    :max="5" 
    :step="0.5" 
/>
const model = ref([-1, 1])

Thanks

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