I have a number pipe on a MatInput [ngModel]
<input matInput [ngModel]="model | number: '.0-3'">
All works as expected when typing in the following values:
typing “.222” yields “0.222”
typing “1” yields “1”
typing “0.03” yields “0.03”
However the issue with the following
typing “.09” yields “9”
after typing . then 0, the decimal disappears and 0 is input then any following up number is entered as a leading value not as a decimal value. We do not want to be forced to enter a leading 0 in order to type in a decimal value of “.0X”