element [Feature Request] slider has two drag events(change and input),but no click event

ukqbszuj  于 2022-11-02  发布在  其他
关注(0)|答案(5)|浏览(142)

Existing Component

Component Name

slider

Description

https://codepen.io/selfdialog/pen/xxxPEgm

Drag the slider using the input event logic to roll back to the value of 50, click on the input event logic to not make a judgment to roll back to the value of 50, you can try.
my requirement is that I can't drag or click forward at 50

xggvc2p6

xggvc2p61#

Translation of this issue:

Existing component

yes

Component name

Slider

Description

Https://codepen.io/selfdialog/pen/xxxpegm

Drag the slider using the input event logic to roll back to the value of 50, click on the input event logic to not make a judgment to roll back to the value of 50, you can try. < / BR > my requirement is that I can't drag or click forward at 50

qij5mzcb

qij5mzcb2#

https://codepen.io/xrkffgg/pen/KKKyLxE?editors=1010

在你的基础上修改了下,应该满足你的要求

其中有2点

  • 使用了 change
  • 通过 ref 调用 setPosition
e1xvtsh3

e1xvtsh33#

😂😂😂 建议发现问题了,多思考下,看看源码有没有间接的解决办法

r7s23pms

r7s23pms4#

😂😂😂 建议发现问题了,多思考下,看看原始有没有间接的解决方法

感谢

jucafojl

jucafojl5#

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

相关问题