Skip to content
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

Merged
merged 3 commits into from
Dec 20, 2018
Merged

Mention suggestion #13695

merged 3 commits into from
Dec 20, 2018

Conversation

zombieJ
Copy link
Member

@zombieJ zombieJ commented Dec 18, 2018

Currently suggestions of Mention is fully controlled. Add defaultSuggestions to support user input filter.

ref: #13678

@zombieJ zombieJ requested a review from afc163 December 18, 2018 11:57
@netlify
Copy link

netlify bot commented Dec 18, 2018

Deploy preview for ant-design ready!

Built with commit 0ff68c6

https://deploy-preview-13695--ant-design.netlify.com

@codecov
Copy link

codecov bot commented Dec 18, 2018

Codecov Report

Merging #13695 into feature will decrease coverage by 0.04%.
The diff coverage is 100%.

Impacted file tree graph

@@             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
Impacted Files Coverage Δ
components/mention/index.tsx 88.46% <100%> (-0.63%) ⬇️
components/_util/wave.tsx 84.84% <0%> (-3.04%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0d05ced...0ff68c6. Read the comment docs.

1 similar comment
@codecov
Copy link

codecov bot commented Dec 18, 2018

Codecov Report

Merging #13695 into feature will decrease coverage by 0.04%.
The diff coverage is 100%.

Impacted file tree graph

@@             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
Impacted Files Coverage Δ
components/mention/index.tsx 88.46% <100%> (-0.63%) ⬇️
components/_util/wave.tsx 84.84% <0%> (-3.04%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0d05ced...0ff68c6. Read the comment docs.

@@ -31,7 +31,7 @@ ReactDOM.render(
style={{ width: '100%' }}
onChange={onChange}
defaultValue={toContentState('@afc163')}
suggestions={['afc163', 'benjycui', 'yiminghe', 'RaoHai', '中文', 'にほんご']}
defaultSuggestions={['afc163', 'benjycui', 'yiminghe', 'RaoHai', '中文', 'にほんご']}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

感觉应该加到 rc 里面

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rc 的 suggestions 不支持 filter 是纯受控的,这个半受控是 antd 里加出来的。

@afc163 afc163 merged commit d2c9e6b into feature Dec 20, 2018
@afc163 afc163 deleted the mentionSuggestion branch December 20, 2018 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants