-
I made a draggable switch. It works perfectly. I can drag the handle and click it to toggle and whatever. But this functionality is implemented outside of the Switch component, which means I can't pass onChange to the Switch component, because then it would toggle the switch again whenever I drag! That means it's not keyboard accessible, which is not good. So I need to find a way to prevent Switch from toggling the value again if all I did was drag the handle. Any ideas? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Fixed by making onChange work if the user is not currently dragging the handle |
Beta Was this translation helpful? Give feedback.
Fixed by making onChange work if the user is not currently dragging the handle