-
-
Notifications
You must be signed in to change notification settings - Fork 50.5k
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
feat: added ref support to Sider component #29169
Conversation
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 1289660:
|
Codecov Report
@@ Coverage Diff @@
## feature #29169 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 393 393
Lines 7496 7497 +1
Branches 2154 2154
=========================================
+ Hits 7496 7497 +1
Continue to review full report at Codecov.
|
Could you add test case? |
@afc163 yes, where can I see example of needed test (maybe in other component)? |
ant-design/components/input/__tests__/Password.test.js Lines 16 to 24 in 7344bbc
|
wrapper.find('aside').simulate('select'); | ||
expect(onSelect).toHaveBeenCalled(); |
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.
onSelect
is unneccessary.
* feat: added ref support to Sider component * test: updated Layout tests (check for ref) Co-authored-by: Аюпов Рамиль Ильдарович <RAyupov@stream.ru>
* feat: added ref support to Sider component * test: updated Layout tests (check for ref) Co-authored-by: Аюпов Рамиль Ильдарович <RAyupov@stream.ru>
🤔 This is a ...
🔗 Related issue link
💡 Background and solution
The problem was that the component did not support
ref
prop. The solution allows to work with DOM-node (<aside/>
tag)📝 Changelog
☑️ Self Check before Merge