-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
fix(components): [select] iOS keyboard not appear when focus #11498
Conversation
👋 @MrWeilian, thank you for contributing element-plus. |
Hello @MrWeilian, thank you for contributing to element-plus, please see our guideline to see how to make contribution |
🧪 Playground Preview: https://element-plus.run/?pr=11498 |
参考了设置 |
键盘是弹出来了👍🏻,但是表现上存在一些问题哦 |
大佬好,什么问题,我跟进下😂 |
RPReplay_Final1676125311.MP4一个是选择后回出现一个下拉框的抖动,类似收齐又展开;然后多选似乎出bug了 |
RPReplay_Final1676645103.MOV |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code LGTM, /cc @chenxch could you help verify this? Thanks 🙇
@chenxch 大佬 cc 👀 |
晚点我看一下哈 |
…-plus#11498) * fix(components): [select] ios keyboard not appear when focus
fix: #11415
问题原因:
iOS系统限制非用户行为的
focus
,仅有用户行为直接触发 或者 用户行为后的 回调函数同步触发.focus()
才能弹起键盘。当前el-input
组件readonly
属性当激活下拉框的时候会被改成false
,由于异步更新关系,再触发el.focus()
就会被系统拦截。参考链接:
Please make sure these boxes are checked before submitting your PR, thank you!
dev
branch.