Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Issues
  • #15968
Closed
Open
Issue created Mar 02, 2015 by Administrator@rootContributor

Tapping below Bootstrap inputs can focus them in Mobile Safari

Created by: asafbrukarz

This one has had me puzzled for a while and I've been trying to find a more specific cause, but I haven't managed to narrow it down further than Bootstrap.

The fiddle here is set up as follows:

  • https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css
  • https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js
  • Mobile Safari on the iOS simulator (iPhone 6 - iOS 8.1, although I have confirmed this to also be the case on a physical iPhone)

When clicking in the area marked in red: ios-simulator-screen-shot-2-mar-2015-11 25

The input is focused: ios simulator screen shot 2 mar 2015 11 33 45 am

The issue here is two-fold:

  1. Touching anywhere on the screen trigger the input to focus - this even occurs on a scroll event
  2. The keyboard does not pop-up. Even if a user wanted to enter text into the input, they need to click it again to trigger the keyboard.

I have been able to confirm the following:

  1. Removing EITHER bootstrap.min.css or bootstrap.min.js fixes the issue.
  2. Removing class: form-control from the input style fixes the issue.
  3. Mobile Safari does not attempt to autofocus form elements on its own.

Greatly appreciate your help in tracking down this issue. I'm not sure if it's a browser bug (caused by adding :focus styles to an element with the autofocus attribute set), or a javascript event.

Assignee
Assign to
Time tracking