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提供focus方法 #6135

Closed
kalrey opened this issue May 15, 2017 · 0 comments
Closed

Mention提供focus方法 #6135

kalrey opened this issue May 15, 2017 · 0 comments
Assignees

Comments

@kalrey
Copy link

kalrey commented May 15, 2017

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

@RaoHai RaoHai self-assigned this May 15, 2017
RaoHai added a commit to RaoHai/ant-design that referenced this issue May 15, 2017
afc163 added a commit that referenced this issue Jul 2, 2017
fix: mention should support `.focus`, close: #6135
@afc163 afc163 closed this as completed in a4a2679 Jul 7, 2017
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 a pull request may close this issue.

2 participants