Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
private _preventEnterOnChildren(element: Element) {
if (!isInternetExplorer()) { return; }
if (!!element.children.length) {
const children: Element[] = Array.from(element.children);
for (const child of children) {
const dragenter = this._renderer.listen(child, 'dragenter', this._preventAll);
const dragleave = this._renderer.listen(child, 'dragleave', this._preventAll);
this._disposalCallbacks.push(
dragenter,
dragleave,
);
}
}
}