react-focus-lock
react-focus-lock copied to clipboard
Typo in readme
whiteList=fn you could whitelist locations FocusLock should carry about. Everything outside it will ignore. For example - any modals.
Should read "care" about
Two more:
In some cases the original node that was focused before the lock was activated is not the desired node to return focus to. Some times this node might not exists at all.
should be "might not exist"
first of all, FocusLock need a moment to record this node, please do not hide it onClick, but hide onBlur (Dropdown, looking at you)
should be "FocusLock needs a moment"
Another:
second, you may specify a callback as returnFocus, letting you decide where to return focus to.
"Specify callback to returnFocus"
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.