feat(popover): add ability to pass event to present method (#23827)

resolves #23813
This commit is contained in:
Liam DeBeasi
2021-08-26 16:22:04 -04:00
committed by GitHub
parent 950350a948
commit 1d2ee92ca0
7 changed files with 65 additions and 17 deletions

View File

@ -1829,9 +1829,9 @@ export namespace Components {
"onWillDismiss": <T = any>() => Promise<OverlayEventDetail<T>>;
"overlayIndex": number;
/**
* Present the popover overlay after it has been created.
* Present the popover overlay after it has been created. Developers can pass a mouse, touch, or pointer event to position the popover relative to where that event was dispatched.
*/
"present": () => Promise<void>;
"present": (event?: MouseEvent | TouchEvent | PointerEvent | undefined) => Promise<void>;
/**
* When opening a popover from a trigger, we should not be modifying the `event` prop from inside the component. Additionally, when pressing the "Right" arrow key, we need to shift focus to the first descendant in the newly presented popover.
*/