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
[Bug Report] El-Input with clearable attribute had text need click twice to open keyboard on iOS Safari #5210
Comments
I had the same problem with el-select |
Any updates? This issue still exists at the moment. |
@btea The issue is still persisting. Is there any update on how to fix it? We are currently thinking about a fork of the code to fix the bug with a custom-solution until it is resolved. |
@raphaelbernhart Sorry, I don't have the relevant equipment environment locally. If you have ideas to solve this issue, please submit a PR. Thank you! |
iOS Safari does not handle click events when a mouseenter event is registered and a DOM-change happens in a child. We use a Vue custom event binding to only register the event on non-iOS devices. The inputHovering state gets updated now on iOS-devices on click. This is needed as the mouseenter event normally does this. closed element-plus#5210
iOS Safari does not handle click events when a mouseenter event is registered and a DOM-change happens in a child. We use a Vue custom event binding to only register the event on non-iOS devices. The inputHovering state gets updated now on iOS-devices on click. This is needed as the mouseenter event normally does this. closed element-plus#5210
@raphaelbernhart Thank you for submitting the PR. However, everyone has been busy with work recently, so the review and release process may not be that fast! If you need it urgently, you can temporarily create a patch file to solve the problem and remove it after the new version is released. |
Element Plus version
1.3.0-beta.1
OS/Browsers version
OS X 10.15.6 / Safari 15
Vue version
3.2.26
Reproduction Link
https://jsfiddle.net/st9140626/kg986fns/4/
Steps to reproduce
When el-input with clearable attribute had inserted text, I need click twice to open input keyboard on iOS Safari.
What is Expected?
When I touch the input, it will be auto focus and open the keyboard on iOS Safari.
What is actually happening?
I need to click twice for each input with clearable attribute on iOS Safari.
The text was updated successfully, but these errors were encountered: