fix(popover): hide arrow if no event was passed

closes #6796
This commit is contained in:
Brandy Carney
2016-06-09 17:03:18 -04:00
parent 31f62e7f1f
commit 8350df0cfc

View File

@ -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)