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
  • #13466
Closed
Open
Issue created Apr 30, 2014 by Administrator@rootContributor

Using loading state on an empty button fails to reset

Created by: choxnox

I have some buttons (anchor elements to be precise) which have no content and have position: absolute overlaying image elements. On button click I'm setting loadingText and then executing button.button("loading"); which works OK.

The problem is when I try to reset the state with button.button("reset");. Instead of seeing an empty element again, I see a button which has it's state resetted but with the "loadingState" content.

So if there is: <button id="loading-example-btn" class="btn btn-primary" data-loading-text="Loading..." type="button"></button>

and if we run: button.button("loading");

and then: button.button("reset");

we end up with the following: <button id="loading-example-btn" class="btn btn-primary" data-loading-text="Loading..." type="button">Loading...</button>

Bootstrap version is v3.0.3.

Assignee
Assign to
Time tracking