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.