mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
Fix the 'data-checkbox-dependency-visual' attribute (#3720)
This commit is contained in:
@@ -328,7 +328,7 @@ var form_handlers = function (el) {
|
||||
update = function () {
|
||||
var enabled = dependency.prop('checked');
|
||||
dependent.prop('disabled', !enabled).closest('.form-group, .form-field-boundary').toggleClass('disabled', !enabled);
|
||||
if (!enabled && !$(this).is('[data-checkbox-dependency-visual]')) {
|
||||
if (!enabled && !dependent.is('[data-checkbox-dependency-visual]')) {
|
||||
dependent.prop('checked', false);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user