Skip to content

[BUG] Input Callback from RangeSlider incorrect if you move right slider on top of left #3786

@dharzheim

Description

@dharzheim

Thank you so much for helping improve the quality of Dash!

We do our best to catch bugs during the release process, but we rely on your help to find the ones that slip through.

Describe your context
Please provide us your environment, so we can easily reproduce the issue.

  • replace the result of pip list | grep dash below
dash                 4.1.0
  • if frontend related, tell us your Browser, Version and OS

    • OS: MacOs Sonomoa
    • Browser: Firefox
    • Version: 150

Describe the bug

If you have a rangeslider, if you move the right slider on top of the left slider the right value in the tuple of the callback will remain unchanged.
If you move the left slide on top of the right slider, it behaves as expected.

Expected behavior

The value should be updated and represent the state of the UI. If both sliders are on 5 it should be [5, 5]

Screenshots

Wrong – Right slider moved on top of left, callback output is [5,15]
Image

Correct – Left slider moved on top of right, callback output is [5,5]

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions