Slider handle does not change when min/max is changed

Discussão em 'Angular' iniciado por Maxim Wilman, Fevereiro 13, 2025.

  1. Maxim Wilman

    Maxim Wilman Guest

    When changing the min or max value of an slider, the handle does not get rerendered or moved accordingly to the new values. So when I drag the handle a little bit, the value jumps. This seems to be because the left position percentage of the handle is not updated. The width of the highlighted area left of the handle is also not updated. This works on the native HTML input type slider.

    I tested it with PrimeNG v19 and also with v17, which I need.

    https://stackblitz.com/~/github.com/mwilman/primeng-slider-v19-demo

    1. Move the Slider to any other value
    2. Click the Button to change the max value
    3. The Handle did not change.
    4. Change the handle and watch how the value jumps

    Expected behavior: The handle moves when the min or max value of the slider is changed, as the position should differ relative to the new values.

    Continue reading...

Compartilhe esta Página