From 96f4ef8d8339234ee4ec97f790e9f1d357bb6904 Mon Sep 17 00:00:00 2001 From: mehmet-erim Date: Fri, 21 Feb 2020 10:02:27 +0300 Subject: [PATCH] fix(core): fix wrong import --- .../src/lib/directives/debounce.directive.ts | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/npm/ng-packs/packages/core/src/lib/directives/debounce.directive.ts b/npm/ng-packs/packages/core/src/lib/directives/debounce.directive.ts index a5e3812cb4..add5545d06 100644 --- a/npm/ng-packs/packages/core/src/lib/directives/debounce.directive.ts +++ b/npm/ng-packs/packages/core/src/lib/directives/debounce.directive.ts @@ -1,5 +1,13 @@ -import { Directive, ElementRef, EventEmitter, Input, OnDestroy, OnInit, Output } from '@angular/core'; -import { takeUntilDestroy } from '@ngx-validate/core'; +import { + Directive, + ElementRef, + EventEmitter, + Input, + OnDestroy, + OnInit, + Output, +} from '@angular/core'; +import { takeUntilDestroy } from '../utils/rxjs-utils'; import { fromEvent } from 'rxjs'; import { debounceTime } from 'rxjs/operators'; @@ -16,10 +24,7 @@ export class InputEventDebounceDirective implements OnInit, OnDestroy { ngOnInit(): void { fromEvent(this.el.nativeElement, 'input') - .pipe( - debounceTime(this.debounce), - takeUntilDestroy(this), - ) + .pipe(debounceTime(this.debounce), takeUntilDestroy(this)) .subscribe((event: Event) => { this.debounceEvent.emit(event); });