theKashey / react-focus-lock

It is a trap! A lock for a Focus. 🔓
MIT License
1.25k stars 65 forks source link

useFocusLock #287

Closed theKashey closed 2 months ago

theKashey commented 5 months ago

The Trap component is not a component, but effectively a hook. Converting it into such will make things simpler.

More of it - "react-clientside-effect" used to track active lock is technically a "non-react" code, creating an opportunity to make the whole "trap" section a plan function operating outside of the react world.

stale[bot] commented 3 months ago

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.