提交 10551a8e 编写于 作者: WodahsOrez's avatar WodahsOrez

lxm---修复app-popover组件在火狐浏览器存在兼容性问题

上级 dc6016e2
......@@ -230,7 +230,7 @@ export class AppPopover {
// 阻止事件冒泡
event.stopPropagation();
const element: Element = event.toElement;
const element: Element = event.toElement || event.srcElement;
if (element.hasAttribute('app-popover-tag')) {
const tag: any = element.getAttribute('app-popover-tag');
if (Object.is(this.activePopoverTag, tag)) {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册