Closed jmurzy closed 1 year ago
The idea is not to deprecate but to prevent accidental usage. Hense "Use this option only if you known what you are doing"
@deprecated infers it may be removed in a future release. How about we use @description instead?
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.
Being able to pass
preventScroll: true
via focus options is important in cases where auto focus is competing with a transition animation e.g. when sliding in a drawer with useTransition. Otherwise the potential page shift caused by focus breaks the animation.https://github.com/theKashey/react-focus-lock/blob/514fc3267a1b8f5dd9f02fdcc89b655ddc39dbef/interfaces.d.ts#L20