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.