-
-
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
Mention suggestion #13695
Mention suggestion #13695
Conversation
Deploy preview for ant-design ready! Built with commit 0ff68c6 |
Codecov Report
@@ Coverage Diff @@
## feature #13695 +/- ##
===========================================
- Coverage 94.04% 93.99% -0.05%
===========================================
Files 314 314
Lines 6951 6948 -3
Branches 1732 1732
===========================================
- Hits 6537 6531 -6
- Misses 400 403 +3
Partials 14 14
Continue to review full report at Codecov.
|
1 similar comment
Codecov Report
@@ Coverage Diff @@
## feature #13695 +/- ##
===========================================
- Coverage 94.04% 93.99% -0.05%
===========================================
Files 314 314
Lines 6951 6948 -3
Branches 1732 1732
===========================================
- Hits 6537 6531 -6
- Misses 400 403 +3
Partials 14 14
Continue to review full report at Codecov.
|
@@ -31,7 +31,7 @@ ReactDOM.render( | |||
style={{ width: '100%' }} | |||
onChange={onChange} | |||
defaultValue={toContentState('@afc163')} | |||
suggestions={['afc163', 'benjycui', 'yiminghe', 'RaoHai', '中文', 'にほんご']} | |||
defaultSuggestions={['afc163', 'benjycui', 'yiminghe', 'RaoHai', '中文', 'にほんご']} |
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 里面
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 的 suggestions 不支持 filter 是纯受控的,这个半受控是 antd 里加出来的。
Currently
suggestions
of Mention is fully controlled. AdddefaultSuggestions
to support user input filter.ref: #13678