We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Consider the following code:
<form> ... <button type="submit" class="btn btn-primary" data-coreui-toggle="loading-button">Save</button> </form>
Pressing Save button never submits the form. I don't think that adding data-coreui-toggle="loading-button" should prevent default action.
Of course, the bug is trivial to fix (loading-button.js):
EventHandler.on(document, EVENT_CLICK_DATA_API, SELECTOR_DATA_TOGGLE, event => { // event.preventDefault(); --> remove this const button = event.target.closest(SELECTOR_DATA_TOGGLE); const data = LoadingButton.getOrCreateInstance(button); data.start(); });
The text was updated successfully, but these errors were encountered:
@vladrusu I appreciate your help. I was on holiday, and today, I'm back to work, I will check it ASAP.
Sorry, something went wrong.
Thanks! Will close this. Added pull request #546.
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
Consider the following code:
Pressing Save button never submits the form. I don't think that adding data-coreui-toggle="loading-button" should prevent default action.
Of course, the bug is trivial to fix (loading-button.js):
The text was updated successfully, but these errors were encountered: