Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors when updating error log display #175

Open
scott-r opened this issue Apr 2, 2024 · 1 comment
Open

Errors when updating error log display #175

scott-r opened this issue Apr 2, 2024 · 1 comment
Assignees

Comments

@scott-r
Copy link
Collaborator

scott-r commented Apr 2, 2024

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
Copy link
Collaborator

townsag commented Apr 14, 2024

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.

@townsag townsag linked a pull request Apr 15, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants