From 1afb923ced4bfaa49708fdd8949536442d2824ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Holeczek?= Date: Sun, 5 Jan 2025 12:45:16 +0100 Subject: [PATCH] chore: remove comments --- js/src/loading-button.js | 2 -- 1 file changed, 2 deletions(-) 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)