From 28b18f460d6298918d33e47d6b703a4faac80023 Mon Sep 17 00:00:00 2001 From: Vlad Rusu Date: Tue, 15 Oct 2024 16:24:28 +0300 Subject: [PATCH] data-coreui-toggle="loading-button" prevents submitting action --- js/src/loading-button.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/src/loading-button.js b/js/src/loading-button.js index 9613edb27..7e928e2d6 100644 --- a/js/src/loading-button.js +++ b/js/src/loading-button.js @@ -176,7 +176,8 @@ class LoadingButton extends BaseComponent { */ EventHandler.on(document, EVENT_CLICK_DATA_API, SELECTOR_DATA_TOGGLE, event => { - event.preventDefault() + // commented because otherwise this won't trigger submit: + //event.preventDefault() const button = event.target.closest(SELECTOR_DATA_TOGGLE) const data = LoadingButton.getOrCreateInstance(button)