fix: category selector disabled categories

v1.18.x
Barış Soner Uşaklı 5 years ago
parent 928a94426b
commit 337be368eb

@ -286,7 +286,7 @@ function checkVisibleChildren(c, cidToAllowed, cidToWatchState, states) {
if (!c || !Array.isArray(c.children)) { if (!c || !Array.isArray(c.children)) {
return false; return false;
} }
return c.children.some(c => c && ( return c.children.some(c => c && !c.disabled && (
(cidToAllowed[c.cid] && states.includes(cidToWatchState[c.cid])) || checkVisibleChildren(c, cidToAllowed, cidToWatchState, states) (cidToAllowed[c.cid] && states.includes(cidToWatchState[c.cid])) || checkVisibleChildren(c, cidToAllowed, cidToWatchState, states)
)); ));
} }

Loading…
Cancel
Save