-
-
Notifications
You must be signed in to change notification settings - Fork 48.9k
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
docs: fix auto complete demo #20946
docs: fix auto complete demo #20946
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 061ab02:
|
Codecov Report
@@ Coverage Diff @@
## master #20946 +/- ##
=======================================
Coverage 97.47% 97.47%
=======================================
Files 296 296
Lines 6901 6901
Branches 1915 1916 +1
=======================================
Hits 6727 6727
Misses 174 174 Continue to review full report at Codecov.
|
<input | ||
aria-activedescendant="undefined_list_0" | ||
aria-autocomplete="list" | ||
aria-controls="undefined_list" |
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.
undefined
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.
在真实场景里面是 rc-select, @zombieJ 来看看有什么问题?
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.
ID 是通过 useEffect
生成的。demo test 里用的 render
所以 FC 第一次的 snapshot 是没有这个值的。用 mount
就会出现值。这里故意这么设计,以防止自增 id 在 ssr 的时候永远对不上,只会在 client 端生成。
🤔 This is a ...
🔗 Related issue link
close #20930
💡 Background and solution
📝 Changelog
☑️ Self Check before Merge
View rendered components/auto-complete/demo/certain-category.md
View rendered components/auto-complete/demo/uncertain-category.md