primeng icon indicating copy to clipboard operation
primeng copied to clipboard

p-slider: In Range mode, the slider gets stuck if the range min value is equal or superior to the range max value

Open btournai opened this issue 2 years ago • 1 comments

Describe the bug

In the slider in range mode, if you define a max value different of the default value, when you move the start range control of the slider after the end range control , the slider crashes and display its end range to the infinity.

image

image

Environment

Everywhere

Reproducer

https://stackblitz.com/edit/github-b4kumc?file=src/app/app.component.html

Angular version

13.3.8

PrimeNG version

13.4.1

Build / Runtime

TypeScript

Language

TypeScript

Node version (for AoT issues node --version)

14.18.0

Browser(s)

Chrome 103

Steps to reproduce the behavior

  1. Create a slider in range mode with min = 0, max = 1000 and ngModel = [20, 500]
  2. Move the start range control after the end range control

Expected behavior

No response

btournai avatar Jul 05 '22 13:07 btournai

Even if you specify the step input, it behaves buggy image

benjaminbekes avatar Aug 06 '22 09:08 benjaminbekes

Can confirm the same in our project.

davidpawar avatar Aug 26 '22 10:08 davidpawar

Hi,

So sorry for the delayed response! Improvements have been made to many components recently, both in terms of performance and enhancement. Therefore, this improvement may have been developed in another issue ticket without realizing it. You can check this in the documentation. If there is no improvement on this, can you reopen the issue so we can include it in our roadmap? Please don't forget to add your feedback as a comment after reopening the issue. These will be taken into account by us and will contribute to the development of this feature. Thanks a lot for your understanding!

Best Regards,

mertsincan avatar Nov 09 '22 21:11 mertsincan

Hi, Thanks for your response. The bug is still present on Prime NG 14.2.1. I open a new issue : #12175. Best regards,

btournai avatar Nov 10 '22 08:11 btournai