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;
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) {
this.removeFromDOM();
@ -40,8 +42,9 @@ export class VisibilityDirective implements AfterViewInit {
setTimeout(() => {
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();
}, 0);

Loading…
Cancel
Save