Skip to content

Commit

Permalink
chore: 🤖 takeuntil in the end
Browse files Browse the repository at this point in the history
  • Loading branch information
NetanelBasal committed Aug 20, 2020
1 parent 5139a45 commit b923aa4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions projects/ngneat/edit-in-place/src/lib/editable.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ export class EditableComponent implements OnInit, OnDestroy {
private handleViewMode(): void {
this.viewHandler = fromEvent(this.element, this.openBindingEvent)
.pipe(
takeUntil(this.destroy$),
tap((e: any) => e.stopPropagation()),
tap((e: Event) => e.stopPropagation()),
withLatestFrom(this.editMode$),
filter(([_, editMode]) => !editMode)
filter(([_, editMode]) => !editMode),
takeUntil(this.destroy$)
)
.subscribe(() => this.displayEditMode());
}
Expand Down

0 comments on commit b923aa4

Please sign in to comment.