Open epignosisx opened 1 week ago
Currently when changing views (century, decade, year, etc) the focus goes to the body.
This PR ensures the focus stays within the view container when switching between views.
Before:
https://github.com/wojtekmaj/react-calendar/assets/697377/1bfd6935-b585-40b7-a95e-7f956633ebb8
After:
https://github.com/wojtekmaj/react-calendar/assets/697377/fb273856-548a-4d8e-abdf-1397f7b514ff
Currently when changing views (century, decade, year, etc) the focus goes to the body.
This PR ensures the focus stays within the view container when switching between views.
Before:
https://github.com/wojtekmaj/react-calendar/assets/697377/1bfd6935-b585-40b7-a95e-7f956633ebb8
After:
https://github.com/wojtekmaj/react-calendar/assets/697377/fb273856-548a-4d8e-abdf-1397f7b514ff