From 8350df0cfcda27b0e303932b44b0a3413819bfc0 Mon Sep 17 00:00:00 2001 From: Brandy Carney Date: Thu, 9 Jun 2016 17:03:18 -0400 Subject: [PATCH] fix(popover): hide arrow if no event was passed closes #6796 --- src/components/popover/popover.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/popover/popover.ts b/src/components/popover/popover.ts index be42ffbfcd4..944aff4e3fe 100644 --- a/src/components/popover/popover.ts +++ b/src/components/popover/popover.ts @@ -339,6 +339,11 @@ class PopoverTransition extends Transition { var arrowWidth = arrowDim.width; var arrowHeight = arrowDim.height; + // If no ev was passed, hide the arrow + if (!targetDim) { + arrowEle.style.display = 'none'; + } + let arrowCSS = { top: targetTop + targetHeight, left: targetLeft + (targetWidth / 2) - (arrowWidth / 2)