Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Inputs with tooltip set can't be focused on first click on iOs, it needs 2. #2783

Closed
pmaoui opened this issue Oct 5, 2014 · 6 comments
Closed

Comments

@pmaoui
Copy link

pmaoui commented Oct 5, 2014

Hi,

When I click on my input that have a tooltip, I can't type directly. It needs a second click to actually focus the input and display the keyboard.
This occurs only on iOs (iPad + iPhone).
Is this a bug ?
Thanks

@jsdevel
Copy link
Contributor

jsdevel commented Nov 8, 2014

@poupougnac can you paste some HTML to reproduce?

@pmaoui
Copy link
Author

pmaoui commented Nov 18, 2014

Hi jsdevel and sorry for the delay.
Here is the fiddle to reproduce http://jsfiddle.net/p27a5mvt/4/

And my youtube demonstration : http://youtu.be/WbC0IKrcuoY
You can notice that the first click display the tooltip, and only the second set the focus on the input.

Occurs on any iPhone/iPad tested so at least every versions of iOS 7.

@pmaoui
Copy link
Author

pmaoui commented Jan 6, 2015

Hi, is there anything new about this issue ? Still waiting for a fix.

@pmaoui
Copy link
Author

pmaoui commented Mar 20, 2015

Hello,

I have found that using specifically "focus" or "click" for the trigger prevent the bug. As tooltip default to "mouseenter" and keep that specification even for touch device, it would be convenient to set "focus" per default for touch device only for input.

@c-johnson
Copy link

+1, thanks for your comment poupougnac, that worked great for me. Is there a reason why "focus" wouldn't be the default? I know you all are busy though :)

@wesleycho
Copy link
Contributor

This is related to #3687, which has more information.

Closing as a duplicate, although I highly recommend rethinking using a tooltip/popover in iOS due to poor/non-sensical UX.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants