We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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的用户交互上尽可能的接近输入框,应当提供设置focus的功能 我们的一个场景是:用户点击某个div后,会将隐藏的Mention组件显示出来,如果用户点击Mention组件之外的区域,Mention又将会被重新隐藏,这就需要我们能够监听onBlur,问题是,当Mention显示出来时,如果用户不主动点击Mention区域内时,Mention无法处于focus状态,后续点击区域外的时候也无法响应onBlur
function focus() like Input
The text was updated successfully, but these errors were encountered:
Add focus method of <Mention />
focus
29bc4a6
+ close ant-design#6135
.focus
Merge pull request #6643 from ant-design/MentionFocus
c7be13b
fix: mention should support `.focus`, close: #6135
a4a2679
RaoHai
Successfully merging a pull request may close this issue.
What problem does this feature solve?
Mention的用户交互上尽可能的接近输入框,应当提供设置focus的功能
我们的一个场景是:用户点击某个div后,会将隐藏的Mention组件显示出来,如果用户点击Mention组件之外的区域,Mention又将会被重新隐藏,这就需要我们能够监听onBlur,问题是,当Mention显示出来时,如果用户不主动点击Mention区域内时,Mention无法处于focus状态,后续点击区域外的时候也无法响应onBlur
What does the proposed API look like?
function focus() like Input
The text was updated successfully, but these errors were encountered: