Closed
Description
π Feature Request
Provide a way to pass into FocusScope nodes, which should consider as a part of it β even they are mounted outside of FocusScope node tree (e.g. portaled).
π€ Expected Behavior
Let say we have portaled tooltips with some links, and these tooltips are inside FormDialog.
And we need to have them in its FocusScope in order to be available for tabbing.
Something like that: <FocusScope shards={tooltipRefs}><FormDialog /></FocusScope>
π― Current Behavior
Any ideas?
π Possible Solution
See https://github.com/theKashey/react-focus-lock/blob/master/src/Lock.js#L199
π¦ Context
FocusScope inner component has portaled nodes with buttons, links, inputs.
π» Examples
<FocusScope shards={tooltipRefs}>
<Input1 /> // inside focus scope
<Input2 /> // inside focus scope
<Portal>
<Input3 /> // outside, but we must have it inside focus scope
</Portal>
</FocusScope>
Metadata
Metadata
Assignees
Labels
No labels