geist-ui
geist-ui copied to clipboard
[Bug]: The slider component is easy to trigger click events during the dragging process
Bug report 🐞
Version & Environment
- Chrome 100.
- latest version of geist
Expected Behaviour
From the docs we can see , when we drag the dof. It's easy way to trigger click event. It's unreasonable. I think it can be fixed :)
Actual results (or Errors)
From source code. we can add a lock for dragHandler, and add unlock logic for clickHandler.
Also running into this issue. Is there any news on this PR?
@deepfates I already fix it. Waiting for the owner to review. :)
adding prop onClick={() => {}} on the slider fixed issue for me
adding prop onClick={() => {}} on the slider fixed issue for me Sadly,In my case. I need use
onClicktoo. So the solution doesn't work for me
@nonzzz Understood. Hope you get it resolved