From 799a3cbeccce70b2327ea1dc44d1cf1dee2c6cff Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Thu, 28 Nov 2024 16:36:01 +0100 Subject: [PATCH] form.js: Ignore buttons again when being asked to render content This slipped through, as I thought the CSS selector `:input`, which was used previously, is invalid. Although, it's a jQuery specific selector -.-, which was also previously used. fixes #5293 --- public/js/icinga/behavior/form.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/js/icinga/behavior/form.js b/public/js/icinga/behavior/form.js index 5da00c6b6f..e9e10f427c 100644 --- a/public/js/icinga/behavior/form.js +++ b/public/js/icinga/behavior/form.js @@ -83,7 +83,9 @@ if ($container[0].contains(origFocus) && origFocus.form && ! origFocus.matches( - 'input[type=submit], input[type=reset], input[type=button], .autofocus, .autosubmit:not(:hover)' + 'input[type=submit], input[type=reset], input[type=button]' + + ', button[type=submit], button[type=reset], button[type=button]' + + ', .autofocus, .autosubmit:not(:hover)' ) ) { this.icinga.logger.debug('Not changing content for ' + containerId + ' form has focus');