From b400e1920650936c9033ecdf69c52e84efc31e5d Mon Sep 17 00:00:00 2001 From: Brandy Carney Date: Mon, 26 Feb 2018 13:40:52 -0500 Subject: [PATCH] style(popover): remove the Event interface type from ev --- packages/core/src/components.d.ts | 5 +---- packages/core/src/components/popover/popover.tsx | 2 +- packages/core/src/components/popover/readme.md | 6 +++--- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/packages/core/src/components.d.ts b/packages/core/src/components.d.ts index b8ea368bed..46e6bc8ffa 100644 --- a/packages/core/src/components.d.ts +++ b/packages/core/src/components.d.ts @@ -32,9 +32,6 @@ import { PickerButton, PickerColumn as PickerColumn2, } from './components/picker/picker'; -import { - Event, -} from '@stencil/core'; import { ScrollCallback, } from './components/scroll/scroll'; @@ -2268,7 +2265,7 @@ declare global { delegate?: FrameworkDelegate; enableBackdropDismiss?: boolean; enterAnimation?: AnimationBuilder; - ev?: Event; + ev?: any; leaveAnimation?: AnimationBuilder; mode?: 'ios' | 'md'; overlayId?: number; diff --git a/packages/core/src/components/popover/popover.tsx b/packages/core/src/components/popover/popover.tsx index 6a47bf6d05..6997fff2d4 100644 --- a/packages/core/src/components/popover/popover.tsx +++ b/packages/core/src/components/popover/popover.tsx @@ -84,7 +84,7 @@ export class Popover implements OverlayInterface { /** * The event to pass to the popover animation. */ - @Prop() ev: Event; + @Prop() ev: any; /** * If true, a backdrop will be displayed behind the popover. Defaults to `true`. diff --git a/packages/core/src/components/popover/readme.md b/packages/core/src/components/popover/readme.md index 00ba8f84c8..6e45e56478 100644 --- a/packages/core/src/components/popover/readme.md +++ b/packages/core/src/components/popover/readme.md @@ -11,7 +11,7 @@ Popovers can be created using a [Popover Controller](../../popover-controller/Po To present a popover, call the `present` method on a popover instance. In order to position the popover relative to the element clicked, a click event needs to be passed into the options of the the `present` method. If the event is not passed, the popover will be positioned in the center of the viewport. ```javascript -async function presentPopover() { +async function presentPopover(event) { const popoverController = document.querySelector('ion-popover-controller'); await popoverController.componentOnReady(); @@ -80,7 +80,7 @@ Animation to use when the popover is presented. #### ev - +any The event to pass to the popover animation. @@ -181,7 +181,7 @@ Animation to use when the popover is presented. #### ev - +any The event to pass to the popover animation.