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

search still working even if the time is disabled #4958

Open
grt-mark opened this issue Jul 8, 2024 · 1 comment
Open

search still working even if the time is disabled #4958

grt-mark opened this issue Jul 8, 2024 · 1 comment

Comments

@grt-mark
Copy link

grt-mark commented Jul 8, 2024

I created a custom time picker range and im having a problem with the search functionality and i dont want to remove it by targeting the key down event and preventing the default. So been checking the docs on how i can detect if the selected time is disabled or not then not apply the selected time if its disabled.

The problem is I noticed that even if the time is already disabled using the filterTimes props, it still can be searched when enter is pressed. Any suggestions?

1
then
2
then after this pic above when i press enter on the selected disabled time it will still be selected

@grt-mark
Copy link
Author

grt-mark commented Jul 8, 2024

would be nice if it cant be selected by any means lets says when i press enter if it is disabled

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

No branches or pull requests

1 participant