How to use the @uipath/angular/utilities.isInternetExplorer function in @uipath/angular

To help you get started, we’ve selected a few @uipath/angular examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github UiPath / angular-components / projects / angular / directives / ui-drag-and-drop-file / src / ui-drag-and-drop-file.directive.ts View on Github external
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,
              );
          }
      }
  }