UnconditionedLife / smum

SMUM Checkin for Santa Maria Urban Ministries (San Jose, California)
https://www.santamariasj.org
3 stars 0 forks source link

Errors when updating error log display #175

Open scott-r opened 5 months ago

scott-r commented 5 months ago

Every time the error log updates, it produces errors like this on the console:

ErrorPage.jsx:36 Mask does not support numbers with variable length such as 'M'. Either use numbers with fix length or disable mask feature with 'disableMaskedInput' prop Falling down to uncontrolled no-mask input.

townsag commented 4 months ago

I added the "disableMaskedInput" flag to the DatePicker components props to silence the error. My understanding of masking the input is that this will allow users to enter dates with potentially invalid format (ex: August vs Aug). However, this is addressed by checking if the dayjs object is valid before fetching from the database. The current behavior is to use an open ended range when the user enters an invalid or null date. This can be changed to requiring either null dates or valid dates. The changes are on the "feature-admin-error-page-2" branch.