Skip to content

Commit

Permalink
fix(popover): hide arrow if no event was passed
Browse files Browse the repository at this point in the history
closes #6796
  • Loading branch information
brandyscarney committed Jun 9, 2016
1 parent 31f62e7 commit 8350df0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/popover/popover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8350df0

Please sign in to comment.