Browse Source

fix lint error

pull/9942/head
mehmet-erim 5 years ago
parent
commit
0eaab84a70
  1. 9
      npm/ng-packs/packages/core/src/lib/directives/visibility.directive.ts

9
npm/ng-packs/packages/core/src/lib/directives/visibility.directive.ts

@ -26,7 +26,9 @@ export class VisibilityDirective implements AfterViewInit {
if (!mutation.target) return; if (!mutation.target) return;
const htmlNodes = const htmlNodes =
Array.from(mutation.target.childNodes || []).filter(node => node instanceof HTMLElement) || []; Array.from(mutation.target.childNodes || []).filter(
node => node instanceof HTMLElement,
) || [];
if (!htmlNodes.length) { if (!htmlNodes.length) {
this.removeFromDOM(); this.removeFromDOM();
@ -40,8 +42,9 @@ export class VisibilityDirective implements AfterViewInit {
setTimeout(() => { setTimeout(() => {
const htmlNodes = const htmlNodes =
Array.from(this.focusedElement.childNodes || []).filter(node => node instanceof HTMLElement) || Array.from(this.focusedElement.childNodes || []).filter(
[]; node => node instanceof HTMLElement,
) || [];
if (!htmlNodes.length) this.removeFromDOM(); if (!htmlNodes.length) this.removeFromDOM();
}, 0); }, 0);

Loading…
Cancel
Save