Update src/pretix/static/pretixcontrol/js/ui/main.js

Co-authored-by: Mira <weller@rami.io>
This commit is contained in:
Richard Schreiber
2024-11-05 13:34:02 +01:00
committed by GitHub
co-authored by Mira
parent fe8e8fbbb9
commit ea90ed008b
@@ -377,7 +377,8 @@ var form_handlers = function (el) {
var dependent = $(this),
dependency = findDependency($(this).attr("data-display-dependency"), this),
update = function (ev) {
var enabled = dependency.attr('disabled') ? false : dependency.toArray().some(function(d) {
var enabled = dependency.toArray().some(function(d) {
if (dependency.attr('disabled')) return false;
if (d.type === 'checkbox' || d.type === 'radio') {
return d.checked;
} else if (d.type === 'select-one') {