mask
Directive behave differently between V14.2.4 and V15.2.1 when masking null
value in ng-template
with ngTemplateOutletContext
#1258
Labels
🐞 bug report
Is this a regression?
Probably yes, the previous version in which this bug was not present was: 14.2.4
Description
When using
mask
directive in ang-template
withngTemplateOutletContext
value that can be set tonull
orundefined
was skipped by themask
directive nothing happened and no errors was triggered which was "good"Now the value is treated as a string type value, the mask is applied on
null
string.🔬 Minimal Reproduction
14.2.4 Version in this stackblitz
15.2.1 Version in this stackblitz
🔥 Exception or Error
No errors throw, just a different behavior.
🌍 Your Environment
Angular Version:
Before
Now
Anything else relevant?
I firstly supposed that values given through
ngTemplateOutletContext
as been converted tostring
value but it seems to not be the case.The text was updated successfully, but these errors were encountered: