You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by mg...@apache.org on 2022/01/24 06:40:12 UTC
[wicket] 01/02: WICKET-6947 IndicatingAjaxButton does not work with Bootstrap 4
This is an automated email from the ASF dual-hosted git repository.
mgrigorov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/wicket.git
commit 37e171fd85dddff9b3ecf22d0337b16bac6bc99a
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
AuthorDate: Mon Jan 24 08:37:28 2022 +0200
WICKET-6947 IndicatingAjaxButton does not work with Bootstrap 4
Remove/add hidden="" when showing/hiding an HTML element
Signed-off-by: Martin Tzvetanov Grigorov <mg...@apache.org>
(cherry picked from commit d68f29dc9c95377a538933c3f4bf23ad238c2c27)
---
.../src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js | 2 ++
1 file changed, 2 insertions(+)
diff --git a/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js b/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js
index 8d351f5..7eaa51a 100644
--- a/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js
+++ b/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js
@@ -1333,6 +1333,7 @@
} else {
e.style.display = display;
}
+ e.removeAttribute("hidden");
}
},
@@ -1341,6 +1342,7 @@
e = Wicket.$(e);
if (e !== null) {
jQuery(e).hide();
+ e.setAttribute("hidden", "");
}
},