As of 2.7.0, react-focus-lock has supported a focusOptions prop, primarily for allowing consumers to pass preventScroll to the initial focus event. react-focus-on unfortunately has not exposed nor is passing that prop directly to react-focus-lock, which potentially leads to scroll jumping issues that cannot be overridden (see https://github.com/theKashey/react-focus-lock/issues/162 for more info).
As of 2.7.0, react-focus-lock has supported a
focusOptions
prop, primarily for allowing consumers to passpreventScroll
to the initial focus event. react-focus-on unfortunately has not exposed nor is passing that prop directly toreact-focus-lock
, which potentially leads to scroll jumping issues that cannot be overridden (see https://github.com/theKashey/react-focus-lock/issues/162 for more info).It should be relatively trivial to pull
focusOptions
from props and pass it directly to<ReactFocusLock>
here: https://github.com/theKashey/react-focus-on/blob/master/src/UI.tsx#L49