You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue
If originalFocusedElement is removed from DOM, but Lock component is not, then that originalFocusedElement cannot be garbage collected causing a memory leak.
Maybe originalFocusedElement ref could be reset in returnFocus handler, even when returnFocus prop is false?
The text was updated successfully, but these errors were encountered:
Description
react-focus-lock/src/Lock.js
Line 46 in 6117039
react-focus-lock/src/Lock.js
Line 64 in 6117039
Issue
If originalFocusedElement is removed from DOM, but Lock component is not, then that originalFocusedElement cannot be garbage collected causing a memory leak.
Maybe originalFocusedElement ref could be reset in returnFocus handler, even when returnFocus prop is false?
The text was updated successfully, but these errors were encountered: