Skip to content
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

Merged
merged 3 commits into from
Jan 25, 2024
Merged

refactor: changeOnWheel #619

merged 3 commits into from
Jan 25, 2024

Conversation

MadCcc
Copy link
Member

@MadCcc MadCcc commented Jan 24, 2024

wheel 重命名为 changeOnWheel
并且在 focus 状态才可以触发

Copy link

vercel bot commented Jan 24, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
input-number ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 24, 2024 9:36am

Copy link

codecov bot commented Jan 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (3323fbb) 94.53% compared to head (5292328) 94.53%.

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.
📢 Have feedback on the report? Share it here.

@@ -118,7 +118,7 @@ const InternalInputNumber = React.forwardRef(
upHandler,
downHandler,
keyboard,
wheel,
changeOnWheel = false,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

focus 才能滚是不是可以直接 true 了?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

还是比较危险,想默认关闭

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

可不可以先开启,然后有问题反馈再关闭呢?focus + hover 感觉已经是非常约束的条件了。

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

默认关闭吧,如果设置了 autoFocus 的话容易被劫持...

Copy link
Member

@afc163 afc163 Jan 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

老属性删掉属于 breaking change,需要发 major。

@MadCcc MadCcc merged commit 3742a02 into master Jan 25, 2024
11 checks passed
@MadCcc MadCcc deleted the feat/changeOnWheel branch January 25, 2024 01:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants