diff --git a/src/lib/overlay/overlay.ts b/src/lib/overlay/overlay.ts index 2ab316a76..869e27601 100644 --- a/src/lib/overlay/overlay.ts +++ b/src/lib/overlay/overlay.ts @@ -101,8 +101,8 @@ export class OverlayComponent extends BaseOverlay implements } @FoundationProperty() - public arrowElement: HTMLElement; + public declare arrowElement: HTMLElement; @FoundationProperty() - public arrowElementOffset: number; + public declare arrowElementOffset: number; } diff --git a/src/lib/popover/popover-foundation.ts b/src/lib/popover/popover-foundation.ts index 60670db65..a117cab19 100644 --- a/src/lib/popover/popover-foundation.ts +++ b/src/lib/popover/popover-foundation.ts @@ -13,7 +13,9 @@ export interface IPopoverFoundation extends IOverlayAwareFoundation { dispatchBeforeToggleEvent(state: IDismissibleStackState): boolean; } -export class PopoverFoundation extends WithLongpressListener(OverlayAwareFoundation) implements IPopoverFoundation { +const BaseClass = WithLongpressListener(OverlayAwareFoundation); + +export class PopoverFoundation extends BaseClass implements IPopoverFoundation { private _targetElement: HTMLElement; private _target: string | null = null; private _arrow = false; diff --git a/src/lib/popover/popover.ts b/src/lib/popover/popover.ts index 95a50e770..a73fdaed8 100644 --- a/src/lib/popover/popover.ts +++ b/src/lib/popover/popover.ts @@ -31,7 +31,7 @@ declare global { /** * @tag forge-popover * - * @description Popovers are used to render content in an element that is above all other content on the page. + * @summary Popovers are used to render content in an element that is above all other content on the page. * * @property {boolean} arrow - Whether or not the popover should render an arrow. * @property {PopoverAnimationType} animationType - The animation type to use for the popover. Valid values are `'none'`, `'fade'`, `'slide'`, and `'zoom'` (default). @@ -128,14 +128,14 @@ export class PopoverComponent extends OverlayAware implement } @FoundationProperty() - public arrow: boolean; + public declare arrow: boolean; @FoundationProperty() - public animationType: PopoverAnimationType; + public declare animationType: PopoverAnimationType; @FoundationProperty() - public triggerType: PopoverTriggerType | PopoverTriggerType[]; + public declare triggerType: PopoverTriggerType | PopoverTriggerType[]; @FoundationProperty() - public longpressDelay: number; + public declare longpressDelay: number; }