-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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(components): [tree-v2] modify the condition for when the value of currentKey is 0 #13935
Conversation
👋 @yj-liuzepeng, thank you for contributing element-plus. |
Hello @yj-liuzepeng, thank you for contributing to element-plus, please see our guideline to see how to make contribution |
🧪 Playground Preview: https://element-plus.run/?pr=13935 |
@yj-liuzepeng Could you add a test case? |
I'm not familiar with unit testing, but I added a test case. Can you review it, please? @btea |
Co-authored-by: btea <2356281422@qq.com>
Co-authored-by: btea <2356281422@qq.com>
Co-authored-by: btea <2356281422@qq.com>
… currentKey is 0 (element-plus#13935) * modify the condition for when the value of currentKey is 0 * add a test case * add a test case * add a test case * Update packages/components/tree-v2/__tests__/tree.test.ts Co-authored-by: btea <2356281422@qq.com> * Update packages/components/tree-v2/__tests__/tree.test.ts Co-authored-by: btea <2356281422@qq.com> * Update packages/components/tree-v2/__tests__/tree.test.ts Co-authored-by: btea <2356281422@qq.com> --------- Co-authored-by: btea <2356281422@qq.com>
… currentKey is 0 (element-plus#13935) * modify the condition for when the value of currentKey is 0 * add a test case * add a test case * add a test case * Update packages/components/tree-v2/__tests__/tree.test.ts Co-authored-by: btea <2356281422@qq.com> * Update packages/components/tree-v2/__tests__/tree.test.ts Co-authored-by: btea <2356281422@qq.com> * Update packages/components/tree-v2/__tests__/tree.test.ts Co-authored-by: btea <2356281422@qq.com> --------- Co-authored-by: btea <2356281422@qq.com>
Please make sure these boxes are checked before submitting your PR, thank you!
dev
branch.Related Issue
Fixes #13933