<Slider range={{ draggableTrack: true }} defaultValue={[20, 50]} />;轨道模式下 会随机出现鼠标禁用的状态
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 30/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- react, typescript
- Domain
- frontend
Research direction
Start by reproducing the range Slider case with draggableTrack and defaultValue={[20, 50]}, using the attached image and video as context. Trace the disabled-state drag behavior and verify that releasing the mouse does not trigger onChange or onAfterChange, while a new track drag remains possible only when the control is enabled.
Written by the indexing model from the issue text.
Description
禁用中滑动鼠标还是可以晃动滑块位置 只是禁用时晃动的滑块位置不会跟着显示 在鼠标松开后会立即跳到晃动的对应位置 并且触发onChange事件 只要鼠标不在点击在这个页面 在页面范围内晃动 滑块还是可以跟着动 怎么修改一下 鼠标禁用状态下松开后不触发onChange事件 而是可以重新点击轨道进行新一次的拖动 直到不显示鼠标禁用状态时再触发onChange事件 因为这个问题会在这个情况下 禁用后松开拖动滑块不会触发外层的滚动 在滚动过程中只能点击一下触发onAfterChange事件才可以进行下一次超出外层容器的内容中的拖动 但是并不是我想触发onAfterChange事件的节点 因为onAfterChange事件中要调接口 视频如下
https://github.com/user-attachments/assets/eccdfbe0-e36d-4712-ab1e-0904076da32c
- Dominant language
- TypeScript
- Stars
- 3.1k
- Forks
- 767
- Avg merge
- 11m
- Merged PRs (30d)
- 1
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from react-component/slider
-
Docs site is brokenOpen
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
react-component/slider#1067 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
react-component/slider#1061 ·
-
当Slider宽度超过外层容器时,点击Slider,滚动条位置异常Possibly taken @nrps9909 claimed this 38 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 45/100
react-component/slider#1060 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 42/100
react-component/slider#1058 · 1 comment ·
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
react-component/slider#1057 · 3 comments · 3 reactions ·
All issues in react-component/slider
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
bug:new
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
callstackincubator/simlock#350 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
openwatersio/maritime-zones#33 ·
Maintainers usually reply within 1 day
-
Booking email verification fails for plus aliases with impersonation protection enabledPossibly taken @kankadev claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
calcom/cal.diy#30293 · 1 comment ·
Maintainers usually reply within 5 days
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
AOSSIE-Org/DebateAI#611 ·
Maintainers usually reply within 3 days