It worked on version 7.9.10 (when i was using Angular 14)
I'm not exactly sure which version the bug started occurring.
Description
The problem arises when dynamically updating the mask directive. The [dropSpecialCharacters] functionality ceases to work upon mask changes, causing the value to lose its special characters. For instance, before the change, the value appears as '12 3456-78901', but after the mask change, it becomes '12345678901'.
While the stackblitz application generates an error, my application does not display that error message. However, the bug persists.
"Error: NG0100: ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '00 00000-00009'. Current value: '00 0000-00009'. Expression location: DoNotDropSpecialCharacters component."
π bug report
Is this a regression?
It worked on version 7.9.10 (when i was using Angular 14) I'm not exactly sure which version the bug started occurring.
Description
The problem arises when dynamically updating the mask directive. The [dropSpecialCharacters] functionality ceases to work upon mask changes, causing the value to lose its special characters. For instance, before the change, the value appears as '12 3456-78901', but after the mask change, it becomes '12345678901'. While the stackblitz application generates an error, my application does not display that error message. However, the bug persists.
π¬ Minimal Reproduction
https://stackblitz.com/edit/stackblitz-starters-quncct?file=src%2Fmain.ts
π₯ Exception or Error
π Your Environment
*NGX-mask version: ^17.0.7 Angular & NGX-mask Version:**