This PR fixes the issue where handleWindowKeydown() is called more than once in nested <Popover>, as each <PopoverPanel> has its own <svelte:window> with an on:keydown handler. The added event.stopImmediatePropagation() makes sure only one handler is called for the same keydown event.
This PR fixes the issue where
handleWindowKeydown()
is called more than once in nested<Popover>
, as each<PopoverPanel>
has its own<svelte:window>
with anon:keydown
handler. The addedevent.stopImmediatePropagation()
makes sure only one handler is called for the same keydown event.This fixes #180.