Skip to content

bug: animate can cause wrong state #150

Open
@EinfachHans

Description

@EinfachHans

Description

First: I really like this package. Thank you for that awesome work! Today i experienced two bug:

Bug 1

First one is easy explained. With a value of 0 and a max value > 0, you still see a little bit filled:

Bildschirmfoto 2024-06-22 um 17 38 11

This is also easily reproduceable through the live demo on your docs page.

Bug 2

The second bug is a little bit trickier. From my debugging: It seems that if animate is set to true in a special case you can have this outcome with min: 0, max: 2 and value: 0:

Bildschirmfoto 2024-06-22 um 17 39 07

Steps to reproduce:

  1. min: 0, max: 3 and value: 1
  2. Update value to 0 (_oldChangeVal will be 1)
  3. Then update max to 2

When animate is false this does not happen. I guess somehow the _oldChangeVal is the problem)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions