-
-
Notifications
You must be signed in to change notification settings - Fork 47.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 组件点击 focus 定位问题 #3801
Comments
tnpm -i |
@afc163 It still happens to me (antd: 3.4, chrome: 65). The Mention is controlled and with multiLines. |
在看了 |
Hi, @RaoHai There is another issue on Mention Component. Focus/blur on Mention will trigger onChange event. and if the Mention is multi-lines, click beside the first line, the onChange event will be fired twice, it seems unexpected. e.g. Manually set value of mention, focus event fired, and the cursor is positioned at the start of the text. |
@RaoHai 有进展不 |
Didn't dig into this draft.js, I have an assumption that Selection API may benefit this problem. Maybe we could try to save and restore the position of the selection cursor in handling change/input event. |
Duplicate of #12931 |
在线演示:https://ant.design/components/mention/
Chrome 问题及重现步骤
Firefox 问题及重现步骤
The text was updated successfully, but these errors were encountered: