If Slider Switches to Disabled While Dragging, Pointer Should Be Released #2677
elson-currentcorp
started this conversation in
Ideas
Replies: 1 comment
-
That's a good point! We should definitely improve that |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
https://stackblitz.com/edit/1bl2rbfn-vxsdpt91?file=src%2FApp.tsx,src%2FSlider.tsx,src%2Fmain.tsx&showSidebar=0
If the slider is disabled while the pointer is dormant, nothing can be dragged.
But if the slider is already being dragged, and it becomes disabled while dragging, then it can continue to be dragged until the mouse is released.
I believe that this behavior should either be prevented, or a cancel function should be provided by the API.
Beta Was this translation helpful? Give feedback.
All reactions