'mat-datepicker changes date inconsistently

Problem: I select 2/28/2022 using the calendar drop down. I then change the date, keying over 28 and make it 31.

Expectations: 2/32/2022 is not valid and should be flagged as an error. Instead the date is changed to 3/3/2022. If i enter 2/33/2022 it is flagged as an error. The behavior is unexpected and inconsistent.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source