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

chore: add loose restrictions to date time text field #7024

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Xazin
Copy link
Collaborator

@Xazin Xazin commented Dec 20, 2024

Closes: #6788

This just adds some loose restrictions to the Date and Time text fields in the Date Picker.

This is done to help the user write the correct format. It's not completely enforced according to the date format, but does limit the user a bit more.

24-hours - Can only enter 5 characters (12:34) and only enter numbers and :
12-hours - Can enter AM and PM as well (12:34 AM) 8 characters

Date field - Can only enter 12 characters (Unsure if should limit it to 10) and allows ., -, and / characters other than numbers.

PR Checklist

  • My code adheres to AppFlowy's Conventions
  • I've listed at least one issue that this PR fixes in the description above.
  • I've added a test(s) to validate changes in this PR, or this PR only contains semantic changes.
  • All existing tests are passing.

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 this pull request may close these issues.

[FR] Add TextFormatter to the time text field in date picker
1 participant