Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

can not input any words after long touch an input element in iframe by ios6, that parent contain zepto. #688

Closed
siemenliu opened this Issue · 2 comments

2 participants

@siemenliu

there is a demo, browse with ios6 device.
http://fiddle.jshell.net/GArrP/show/

1 - when dom ready, touch the input element in iframe, focus on it.
2 - long touch until the magnifying glass show, release.
2 - input any word, the problem reproduce.

@siemenliu

if remove touch module code from zepto, it works fine.
http://fiddle.jshell.net/TcvHf/6/show/

@madrobby
Owner

I suggest forking the touch module and adapting it to your needs (possibly preventing events from being handled when the main document doesn't have focus). I don't see how Zepto causes this specific problem as the touch module doesn't prevent any default events or propagation of events (possibly this is a browser bug or a security "feature"). Verified on iOS 7.0.3.

Because of being such an edge case, I'm closing this ticket. If a simple solution surfaces, we'll gladly add it to Zepto.

@madrobby madrobby closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.