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
fix: wrappig index param #739
fix: wrappig index param #739
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/react-component/select/AMfNenaXNPQDwpjaS7fHqLVeVXDk |
3d1e130
to
b7bcf12
Compare
来个用例。 |
Codecov Report
@@ Coverage Diff @@
## master #739 +/- ##
=======================================
Coverage 99.50% 99.50%
=======================================
Files 25 25
Lines 1013 1013
Branches 320 321 +1
=======================================
Hits 1008 1008
Misses 4 4
Partials 1 1
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
是 https://github.com/react-component/select/pull/728/files#diff-72ec48c7788c5c428904bee5501e48f2f6ddcd678eb89dc03788715c14452860R71 这里改出来的问题。最好这里直接加个判断: listRef.current.scrollTo(typeof args === 'number' ? { index: args } : args); |
* Fix: fix scroll params [issue-link](ant-design/ant-design#34468) * Chore: add unit test for scroll config type params
scrollIntoView 几处调用就不动了。 |
fix: ant-design/ant-design#34898
fix: ant-design/ant-design#35022