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

Add a function to disable the selection of hours, minutes, and seconds on the dateField and 'timePicker' component #2384

Open
hlayisanimazuze opened this issue Nov 11, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@hlayisanimazuze
Copy link
Collaborator

hlayisanimazuze commented Nov 11, 2024

The current date field component supports disabling dates, but it does not support disabling time selection (hours, minutes, seconds). There is a request to add functionality to disable time selection as well.

This implementation is supported on ant design: https://codesandbox.io/s/9fjfgv?file=/demo.tsx

  • Add a template to disable future time and past time
  • Add a function to disable custom time selection

Time Picker: Has disabledTime property on antD to support the implementation: https://ant.design/components/time-picker

@hlayisanimazuze hlayisanimazuze added the enhancement New feature or request label Nov 11, 2024
@hlayisanimazuze hlayisanimazuze added this to the Backlog milestone Nov 11, 2024
@hlayisanimazuze hlayisanimazuze changed the title Add a function to disable the selection of hours, minutes, and seconds on the dateField component Add a function to disable the selection of hours, minutes, and seconds on the dateField and 'timePicker' component Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants