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

frontend: Workflowitem with no due date shows invalid date in new datepicker #708

Closed
2 tasks done
SamuelPull opened this issue Dec 14, 2020 · 1 comment · Fixed by #711
Closed
2 tasks done

frontend: Workflowitem with no due date shows invalid date in new datepicker #708

SamuelPull opened this issue Dec 14, 2020 · 1 comment · Fixed by #711
Assignees

Comments

@SamuelPull
Copy link
Collaborator

SamuelPull commented Dec 14, 2020

An empty date is shown as an invalid date in the new date picker

  • The issue is present in the latest release.
  • I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior 😯

Screenshot 2020-12-14 at 16 36 38

Expected Behavior 🤔

No date should show empty line, not error.

Steps to Reproduce 🕹

Steps:

  1. Create a workflowitem with no due date
  2. Edit that workflowitem
  3. Bim 💣
  4. ☠️

Context 🔦

Your Environment 🌎

Tech Version
Frontend v1.?.?
API v1.?.?
Blockchain v1.?.?
Export-Service v1.?.?
Email-Service v1.?.?
Chrome-Browser ?
etc.
@SamuelPull
Copy link
Collaborator Author

We cannot just override invalidDateMessage property, that would enable meaningless dates such as "asdf".
Probably need to override formatting function? https://material-ui-pickers.dev/api/KeyboardDatePicker

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