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
  • #14450
Closed
Open
Issue created Aug 25, 2014 by Administrator@rootContributor

No form submit when Button loading text used and clicked on tag inside button

Created by: roelvanduijnhoven

See http://jsfiddle.net/vhq044yq/1/ for a clear use case. This fails in my case in Chrome.

I have a form:

<form>
    <button type="submit" class="btn btn-success">Do not click <strong>HERE</strong></button>
</form>

And use the following code to trigger the loading state of the button:

$('[type=submit]').on('click', function() {
    $(this).button('loading');
});

Clicking the STRONG text will not result in a form submit (altough loading state will trigger) whereas clicking other areas will.

Assignee
Assign to
Time tracking