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 Sep 13, 2024
1 parent 886d1d0 commit d1b121e
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 d1b121e

Please sign in to comment.