react-focus-lock icon indicating copy to clipboard operation
react-focus-lock copied to clipboard

[Question] it doesn't focus on the first element

Open Whooolia opened this issue 4 years ago • 1 comments

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?

Screenshot 2021-01-18 at 15 27 14

Whooolia avatar Jan 18 '21 06:01 Whooolia

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?

theKashey avatar Jan 18 '21 23:01 theKashey

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.

stale[bot] avatar Apr 30 '23 12:04 stale[bot]