Skip to content

Commit 3d8c7ac

Browse files
fix(menu): declare popover property type on HTMLElement
Without it the popover property got renamed by closure. PiperOrigin-RevId: 584184281
1 parent 8eb1f30 commit 3d8c7ac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

menu/internal/controllers/surfacePositionController.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {ReactiveController, ReactiveControllerHost} from 'lit';
88
import {StyleInfo} from 'lit/directives/style-map.js';
99

1010
/**
11-
* Declare popoverAPI functions. See
11+
* Declare popoverAPI functions and properties. See
1212
* https://developer.mozilla.org/en-US/docs/Web/API/Popover_API
1313
* Without this, closure will rename these functions. Can remove once these
1414
* functions make it into the typescript lib.
@@ -18,6 +18,7 @@ declare global {
1818
showPopover(): void;
1919
hidePopover(): void;
2020
togglePopover(force: boolean): void;
21+
popover: string | null;
2122
}
2223
}
2324

0 commit comments

Comments
 (0)