react-focus-lock
react-focus-lock copied to clipboard
[Question] it doesn't focus on the first element
Hi just want to understand the behaviour
when the modal opened, it doesn't focus on the first element, instead the second.
I tried to add data-autofocus
on the first element but it didn't work.
Is there any reason that it focuses on the second one instead? or anyone can help me how to focus on the first element?
It's not possible to answer this question without seeing an example or at least a code snipet.
- are you able to
tab
(shift+tab in this case) to the first element - what would happen if you place Calendar in another place?
- what else is not working?
This issue has been marked as "stale" because there has been no activity for 2 months. If you have any new information or would like to continue the discussion, please feel free to do so. If this issue got buried among other tasks, maybe this message will reignite the conversation. Otherwise, this issue will be closed in 7 days. Thank you for your contributions so far.