diff --git a/js/src/loading-button.js b/js/src/loading-button.js index 7e928e2d6..3892b2982 100644 --- a/js/src/loading-button.js +++ b/js/src/loading-button.js @@ -176,8 +176,6 @@ class LoadingButton extends BaseComponent { */ EventHandler.on(document, EVENT_CLICK_DATA_API, SELECTOR_DATA_TOGGLE, event => { - // commented because otherwise this won't trigger submit: - //event.preventDefault() const button = event.target.closest(SELECTOR_DATA_TOGGLE) const data = LoadingButton.getOrCreateInstance(button)