laboratoriobridge / bold

https://bold.bridge.ufsc.br
MIT License
75 stars 9 forks source link

[MonthField] "TypeError" after clear MonthField input #827

Closed luanadalmarcofronza closed 7 months ago

luanadalmarcofronza commented 7 months ago

A "TypeError" is encountered when attempting to clear the input in the MonthField. The error specifically mentions that it cannot read properties of null, particularly the 'year' property.

To Reproduce

  1. Select a month and year in the MonthField.
  2. Clear the input value. Observe the "TypeError" related to reading properties of null, specifically 'year'.

Expected behavior

The MonthField have to handle the cleared input gracefully, without triggering a "TypeError" related to reading properties of null.

Screenshots

Screenshot from 2024-01-18 16-25-36

Desktop (please complete the following information):