-
-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: changeOnWheel #619
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #619 +/- ##
=======================================
Coverage 94.53% 94.53%
=======================================
Files 6 6
Lines 293 293
Branches 74 75 +1
=======================================
Hits 277 277
Misses 16 16 ☔ View full report in Codecov by Sentry. |
@@ -118,7 +118,7 @@ const InternalInputNumber = React.forwardRef( | |||
upHandler, | |||
downHandler, | |||
keyboard, | |||
wheel, | |||
changeOnWheel = false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
focus 才能滚是不是可以直接 true 了?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
还是比较危险,想默认关闭
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
可不可以先开启,然后有问题反馈再关闭呢?focus + hover 感觉已经是非常约束的条件了。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
默认关闭吧,如果设置了 autoFocus
的话容易被劫持...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
老属性删掉属于 breaking change,需要发 major。
wheel
重命名为changeOnWheel
并且在 focus 状态才可以触发