-
-
Notifications
You must be signed in to change notification settings - Fork 331
fix: click some page & prev btn #323
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
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/react-component/pagination/FrtB79LMJTXBbNGZcUYNXKCtTn1o |
This comment has been minimized.
This comment has been minimized.
我现在就是在这个地方加的判断。 逻辑是,如果是 页数按钮 或 上一页下一页的 button 触发的 input 的 blur,会清空 input 的值,并停止 input blur 的改变,而以外层点击的 改变 为准。 |
我的想法,用户在输入的时候,是想去某一页,但却选择了点击其他页的形式,表示他的意愿更偏向于点击的那一页。 然后用户改变分页的意愿完成,input 清空。 不然留着会造成歧义,并且不经意的 blur 就会又改变页数。 |
Codecov Report
@@ Coverage Diff @@
## master #323 +/- ##
==========================================
+ Coverage 91.43% 92.35% +0.91%
==========================================
Files 3 3
Lines 327 327
Branches 113 113
==========================================
+ Hits 299 302 +3
+ Misses 28 25 -3
Continue to review full report at Codecov.
|
close ant-design/ant-design#29512
之前有个判断 上一页下一页的按钮,但其实点击触发的不是相应的,而是里层的 -item-link。这里修复了下。
增加了 点击 分页的判断,同时这两种情况 都会清空 input 。