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

Proposition: during range select when we are on the left or right date then focus left or right date. #646

Open
KES777 opened this issue Dec 1, 2024 · 2 comments

Comments

@KES777
Copy link

KES777 commented Dec 1, 2024

Eg.
image
Here if we click right part, then December 20 should be activated and can change that date.

If right cursor is located in the left part
image
Then November 4 should be activated and I can change that date.

Current behavior.
Despite on where we clicked in the input text, in the calendar we select first (left date), then select second (right date). If we clicked once again the selected dates are cleared and process started from the beginning

Expected behavior.
If we selected big range and then realized that we want to change starting (left) date a little bit we are forced to scroll a lot left, select correct date and then we need to scroll a lot again to select second date. Instead it would be nice to just position cursor in the input text on the left/right date and the calendar activates that date change.

@t1m0n
Copy link
Owner

t1m0n commented Dec 5, 2024

Interesting proposition, thanks. But I think it is better to implement it manually, because such feature is not crucial but could add a couple of kbs to the weight of library.

@KES777
Copy link
Author

KES777 commented Dec 6, 2024

It looks hard to implement, because I never seen it was implemented on such sites like air or train tickets. Having this implemented here would make the world better.
I hope it will not take kbs, only few lines.

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