Skip to content

Commit

Permalink
Update maskito.directive.ts
Browse files Browse the repository at this point in the history
fix dynamic options with customplugins maskitoEventHandler
  • Loading branch information
TheHomeGera authored and splincode committed Sep 17, 2024
1 parent 92a8f32 commit 6afbec4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions projects/angular/src/lib/maskito.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export class MaskitoDirective implements OnDestroy, OnChanges {
}

ngZone.runOutsideAngular(() => {
this.maskedElement?.destroy();
this.maskedElement = new Maskito(predicateResult, options);
});
}
Expand Down

0 comments on commit 6afbec4

Please sign in to comment.