mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-25 08:48:12 +08:00
Bump frontend dependencies to Svelte 5 (#3648)
* Add more recommended VS Code default configs * Upgrade frontend dependencies including Svelte 5 * Fix derived_references_self runtime error * Fix lint warnings
This commit is contained in:
committed by
Timon Schelling
parent
3b55064f44
commit
915a344a05
@@ -12,6 +12,7 @@
|
||||
const dispatch = createEventDispatcher<{ selectedEntryValuePath: string[] }>();
|
||||
|
||||
let self: MenuList;
|
||||
let open = false;
|
||||
|
||||
// Note: IconButton should instead be used if only an icon, but no label, is desired.
|
||||
// However, if multiple TextButton widgets are used in a group with only some having no label, this component is able to accommodate that.
|
||||
@@ -93,9 +94,9 @@
|
||||
</button>
|
||||
{#if menuListChildrenExists}
|
||||
<MenuList
|
||||
on:open={({ detail }) => self && (self.open = detail)}
|
||||
on:selectedEntryValuePath={({ detail }) => dispatch("selectedEntryValuePath", detail)}
|
||||
open={self?.open || false}
|
||||
on:open={({ detail }) => (open = detail)}
|
||||
{open}
|
||||
entries={menuListChildren || []}
|
||||
entriesHash={menuListChildrenHash || 0n}
|
||||
direction="Bottom"
|
||||
|
||||
Reference in New Issue
Block a user