fix(popover): fire "click:outside" event when clicking sibling elements (#1570)

This commit is contained in:
Maxime Fafard 2022-12-07 23:10:45 -05:00 committed by GitHub
commit 0f8a57b9d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 58 additions and 7 deletions

View file

@ -60,6 +60,6 @@ export interface PopoverProps
export default class Popover extends SvelteComponentTyped<
PopoverProps,
{ ["click:outside"]: CustomEvent<null> },
{ ["click:outside"]: CustomEvent<{ target: HTMLElement }> },
{ default: {} }
> {}