javascript - Zone.js click event cancels out 3rd tooltip party script event
问题描述
The scenario: An angular 8 app loads in on a webpage. The webpage loads additional 3rd party scripts like the tooltip library.
As described in the title: the problem is the tooltip click event is canceled out by the zone.js click event. Rendering the tooltip library useless. Searching in the angular docs i found you can blacklist zone.js events with:
(window as any).__zone_symbol__BLACK_LISTED_EVENTS = ['click'];
However this is far from ideal, because this will also remove any click related events inside the angular application.
Can we remove the zone.js event for specific elements?
解决方案
推荐阅读
- apache - Apache、Ubuntu、SSL、别名和虚拟
- intellij-idea - Flutter Hot Reload 在 IntelliJ 中不起作用
- scala - 为什么我的 Akka 应用程序在 1 到 2 天后挂起?
- angular - Angular 6 custom lib没有ComponentFactoryResolver的提供者
- java - 将 int 转换为枚举类型
- batch-file - .bat 文件上的 CJK 字符串
- python - KeyError: 1744843431 加载泡菜文件时
- dart - Flutter 圆角头像 appBar
- php - 如何在 PHP 数组中查找重复项?
- asp.net - 使用 ASP.NET 从 SQL Server 显示图像