mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
fix(overflow-menu): dispatch "close" event when clicking outside (#1546)
Fixes #1541
This commit is contained in:
parent
ba62f45d34
commit
837716ff8b
4 changed files with 14 additions and 11 deletions
2
types/OverflowMenu/OverflowMenu.svelte.d.ts
vendored
2
types/OverflowMenu/OverflowMenu.svelte.d.ts
vendored
|
@ -80,7 +80,7 @@ export interface OverflowMenuProps
|
|||
export default class OverflowMenu extends SvelteComponentTyped<
|
||||
OverflowMenuProps,
|
||||
{
|
||||
close: CustomEvent<{ index: number; text: string }>;
|
||||
close: CustomEvent<null | { index: number; text: string }>;
|
||||
click: WindowEventMap["click"];
|
||||
mouseover: WindowEventMap["mouseover"];
|
||||
mouseenter: WindowEventMap["mouseenter"];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue