Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

"autofocus" on input types breaks jQuery Mobile page layout #5385

@aiprat

Description

@aiprat

On writing my own HTML5 jQM application, I came across this unusual behavior. Whenever I use the "autofocus" attribute on any input elements, my jQuery mobile page breaks. I use long texts on my page with an input field and a button at the bottom. Doing autofocus on the input field floods the whole page with my text. I cannot see my header and the footer and the input field are missplaced. I can confirm this with jQM 1.1.0 and 1.2.0 on a WebKit browser (Chrome & Android). Below is an example of how this actually looks:

http://jsfiddle.net/NYVfa/16/

PS: Firefox has no problem with this.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions