Skip to content

feat(CalendarView): cellFocusable prop #187

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

Closed
wants to merge 2 commits into from
Closed

Conversation

DaniilDem
Copy link

This PR solves the problem of managing the focus of cells in the calendar component. A mechanism has been implemented to prevent the loss of focus from other elements when the user interacts with the calendar.

@gravity-ui-bot
Copy link
Contributor

Preview is ready.

@DaniilDem
Copy link
Author

Screen.Recording.2025-05-12.at.21.00.16.mov

I need to control the focus so that the focus does not disappear from the input element. And the calendar popup itself wasn't hidden.

@korvin89
Copy link
Contributor

Could you provide sandbox with reproduction?

@DaniilDem
Copy link
Author

Could you provide sandbox with reproduction?

https://preview.gravity-ui.com/date-components/187/?path=/story/components-calendar--input-focus

Added an example of Input Focus. The calendar opens when the input has focus and closes when there is a blur. The code was copied from TokenizedInput

@DaniilDem
Copy link
Author

I found how to fix the problem in the component that wraps the calendar.

@DaniilDem DaniilDem closed this May 14, 2025
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.

3 participants