From bd7c1e42c2d8c9dfff3c7c979f748d338b0247c6 Mon Sep 17 00:00:00 2001 From: Jan-Hendrik Willms <tleilax+studip@gmail.com> Date: Thu, 27 Jan 2022 14:53:21 +0000 Subject: [PATCH] exclude elements with [data-secure] from nested checks, fixes #611 --- resources/assets/javascripts/bootstrap/data_secure.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/assets/javascripts/bootstrap/data_secure.js b/resources/assets/javascripts/bootstrap/data_secure.js index 3837df7bb59..a1a5ac7ae95 100644 --- a/resources/assets/javascripts/bootstrap/data_secure.js +++ b/resources/assets/javascripts/bootstrap/data_secure.js @@ -94,7 +94,7 @@ function detectChanges(context) { var data = $(this).data().secure; var config = normalizeConfig(data); - var items = $(this).is('form') ? $(this).find(':input') : $(this); + var items = $(this).is('form') ? $(this).find(':input:not([data-secure])') : $(this); if (config.always === true) { changed = true; -- GitLab