@dosgato/dialog 0.0.72 → 0.0.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tree/treestore.js +3 -1
- package/package.json +1 -1
package/dist/tree/treestore.js
CHANGED
|
@@ -203,7 +203,9 @@ export class TreeStore extends ActiveStore {
|
|
|
203
203
|
}
|
|
204
204
|
async openAndRefresh(item, notify = true) {
|
|
205
205
|
await this.refresh(item, true);
|
|
206
|
-
this.value.itemsById[item.id]
|
|
206
|
+
const newItem = this.value.itemsById[item.id];
|
|
207
|
+
newItem.open = !!newItem.children?.length;
|
|
208
|
+
item.open = newItem.open;
|
|
207
209
|
if (notify)
|
|
208
210
|
this.trigger();
|
|
209
211
|
}
|
package/package.json
CHANGED