You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which @angular/* package(s) are the source of the bug?
forms
Is this a regression?
No
Description
With a form control, if you have an <input type=number> with an attached formControl, when the input is changed from user interaction, the type of the value that's given is a number. However, if the input type is dynamically set (<input [type]="dynamicInputType" />), the value accessor that would normally apply doesn't apply, even if dynamicInputType is 'number', whether changed later or the initial value. This means that values returned from this control are strings instead of numbers.
Please provide a link to a minimal reproduction of the bug
Which @angular/* package(s) are the source of the bug?
forms
Is this a regression?
No
Description
With a form control, if you have an
<input type=number>
with an attached formControl, when the input is changed from user interaction, the type of the value that's given is a number. However, if the input type is dynamically set (<input [type]="dynamicInputType" />
), the value accessor that would normally apply doesn't apply, even ifdynamicInputType
is 'number', whether changed later or the initial value. This means that values returned from this control are strings instead of numbers.Please provide a link to a minimal reproduction of the bug
https://stackblitz.com/edit/angular-bf5qsf?file=src%2Fmain.ts
Please provide the exception or error you saw
No response
Please provide the environment you discovered this bug in (run
ng version
)Anything else?
No response
The text was updated successfully, but these errors were encountered: