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

VaTimeInput, VaDateInput change date with arrow keys inside input #4136

Open
m0ksem opened this issue Jan 10, 2024 · 2 comments
Open

VaTimeInput, VaDateInput change date with arrow keys inside input #4136

m0ksem opened this issue Jan 10, 2024 · 2 comments

Comments

@m0ksem
Copy link
Contributor

m0ksem commented Jan 10, 2024

I wonder is it possible to handle cursor position in manual input filed. If it near month, then arrow keys must change month. Like arrow down month + 1, arrow up month -1.

this way we can't go from 09 to 10, because we're not sure what formatting is used on user's side.

Need to research if 09 to 01 is even useful.

@gweesin
Copy link
Contributor

gweesin commented Apr 3, 2024

Would you like this functionality to apply to all instances of DateInput and TimeInput, even if the manual input property is not specified?

@gweesin
Copy link
Contributor

gweesin commented Apr 3, 2024

I think allowing manual use of arrow keys to change the date for all statuses (otherwise disabled) would be better than the current method, similar to the MUI:
https://mui.com/x/react-date-pickers/date-picker/

If we do that, we should also remove the manual property.

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

2 participants