fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

@fluentui/react - Slider - onChanged is not working as expected

Open sivapalaniappan opened this issue 5 years ago • 6 comments

Environment Information

  • Package version(s): @fluentui/react - 7.165.2
  • Browser and OS versions: Edge v90.0.818.62 and Windows 10

Please provide a reproduction of the bug in a codepen:

https://codepen.io/sivasingaravelu/pen/MWpyRLE

Actual behavior:

The handlerFn passed to onChanged is called with the value that was present when the change had actually started.

Expected behavior:

The handlerFn passed to onChanged should be called with the value when the change had actually ended.

Priorities and help requested:

Are you willing to submit a PR to fix? (Yes, No)

Requested priority: Blocking

Products/sites affected: Whiteboard Web

sivapalaniappan avatar May 15 '21 00:05 sivapalaniappan

tagging @ecraig12345

sivapalaniappan avatar May 15 '21 01:05 sivapalaniappan

Can confirm that this is a bug and it's also a regression as this worked in v7. Will work on a fix.

TristanWatanabe avatar May 19 '21 17:05 TristanWatanabe

I've met the same issue here. Also, the onChanged method doesn't support range value.

Layne101 avatar May 20 '21 05:05 Layne101

Another thing is that when I slide to the same value in succession, it still will trigger the onChanged function. I don't think it's an expected behavior.

Layne101 avatar May 20 '21 06:05 Layne101

:tada:This issue was addressed in #18304, which has now been successfully released as @fluentui/[email protected].:tada:

Handy links:

msft-fluent-ui-bot avatar May 25 '21 01:05 msft-fluent-ui-bot

:tada:This issue was addressed in #18330, which has now been successfully released as @fluentui/[email protected].:tada:

Handy links:

msft-fluent-ui-bot avatar Jun 28 '21 07:06 msft-fluent-ui-bot