From 0cd096de25a634b3db54ee88c91bfbfd1470e21e Mon Sep 17 00:00:00 2001 From: Send_Nukez Date: Tue, 12 Oct 2021 06:45:08 +0200 Subject: [PATCH] config item's children can now be individually shown / hidden --- dribbblish.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dribbblish.js b/dribbblish.js index 7c461bf..fce4934 100644 --- a/dribbblish.js +++ b/dribbblish.js @@ -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 };