mirror of
https://github.com/pretix/pretix.git
synced 2026-05-06 15:24:02 +00:00
Support transitive dependencies on data-checkbox-dependency (#5295)
This commit is contained in:
committed by
GitHub
parent
dc164f7817
commit
96df3d6831
@@ -330,6 +330,7 @@ var form_handlers = function (el) {
|
||||
dependent.prop('disabled', !enabled).closest('.form-group, .form-field-boundary').toggleClass('disabled', !enabled);
|
||||
if (!enabled && !dependent.is('[data-checkbox-dependency-visual]')) {
|
||||
dependent.prop('checked', false);
|
||||
dependent.trigger('change')
|
||||
}
|
||||
};
|
||||
update();
|
||||
|
||||
Reference in New Issue
Block a user