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

当作为基本的select时不应该focus和render input,因为会改变document 的 selection 和native select 行为不一致 #1022

Open
tonny008 opened this issue Jan 22, 2024 · 0 comments

Comments

@tonny008
Copy link

当作为基本的select时不应该focus和render input,因为会改变document 的 selection 和native select 行为不一致

当select用在富文本编辑器中用于改变选中文本的字体,选项弹出时会清空当前选中的文字,而native select并不会,调试后发现是rc-select 生成的 input导致的。

如下图,选中文字再点select会取消选中,而native select并不会
image

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

No branches or pull requests

1 participant