Support transitive dependencies on data-checkbox-dependency (#5295)

This commit is contained in:
Christoph Walcher
2025-07-18 12:53:27 +02:00
committed by GitHub
parent dc164f7817
commit 96df3d6831

View File

@@ -330,6 +330,7 @@ var form_handlers = function (el) {
dependent.prop('disabled', !enabled).closest('.form-group, .form-field-boundary').toggleClass('disabled', !enabled); dependent.prop('disabled', !enabled).closest('.form-group, .form-field-boundary').toggleClass('disabled', !enabled);
if (!enabled && !dependent.is('[data-checkbox-dependency-visual]')) { if (!enabled && !dependent.is('[data-checkbox-dependency-visual]')) {
dependent.prop('checked', false); dependent.prop('checked', false);
dependent.trigger('change')
} }
}; };
update(); update();