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 operation bug #6649

Closed
grene78 opened this issue Oct 25, 2024 · 1 comment · Fixed by #6674
Closed

Slider range operation bug #6649

grene78 opened this issue Oct 25, 2024 · 1 comment · Fixed by #6674
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@grene78
Copy link

grene78 commented Oct 25, 2024

Describe the bug

When the slider is configured for range operation with a lower bound below 0. A value of 0 will render on the far left of the slider.

Reproducer

https://stackblitz.com/edit/primevue-4-vite-issue-template-izxnwj?file=src%2FApp.vue

PrimeVue version

4.1.1

Vue version

4.x

Language

ALL

Build / Runtime

Vite

Browser(s)

edge, chrome

Steps to reproduce the behavior

create slider with min -100 to max 100
now set model value = [0,50]
[1,50] and [-1,50' work as expected

Expected behavior

when range is 0 is should render between -1 and 1 but instead renders to the left.

@grene78 grene78 added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Oct 25, 2024
@j0rgedev
Copy link
Contributor

Hello @grene78. I've created a PR that fixes this issue. Let's wait for the team to check it out 😁🫱🏻‍🫲🏻

@tugcekucukoglu tugcekucukoglu added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Nov 12, 2024
@tugcekucukoglu tugcekucukoglu added this to the 4.2.2 milestone Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants