diff --git a/src/components/Key.svelte b/src/components/Key.svelte index 9e35006f..89745fe7 100644 --- a/src/components/Key.svelte +++ b/src/components/Key.svelte @@ -27,8 +27,11 @@ // One-way binding for slot data. export let inslot: ActionInstance | null; let slot: ActionInstance | null; + let lastInslot: ActionInstance | null | undefined; const update = (inslot: ActionInstance | null) => { + if (inslot === lastInslot) return; if (inslot && context && inslot.context.split(".")[0] != context.device) return; + lastInslot = inslot; slot = inslot; }; $: update(inslot);