mirror of
https://github.com/danbulant/dribbblish-dynamic-theme
synced 2026-05-24 12:35:05 +00:00
config item's children can now be individually shown / hidden
This commit is contained in:
parent
47a5a15d8e
commit
0cd096de25
1 changed files with 1 additions and 1 deletions
|
|
@ -128,7 +128,7 @@ class ConfigMenu {
|
|||
options.onChange = (val) => {
|
||||
options._onChange(val);
|
||||
const show = options.showChildren(val);
|
||||
options.children.forEach((child) => this.setHidden(child.key, !show));
|
||||
options.children.forEach((child) => this.setHidden(child.key, Array.isArray(show) ? !show.includes(child.key) : !show));
|
||||
};
|
||||
options.children = options.children.map((child) => {
|
||||
return { ...defaultOptions, ...child, area: options.area, childOf: options.key };
|
||||
|
|
|
|||
Loading…
Reference in a new issue