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
The findDOMNode() function call (and dependency on react-dom) has been added in 34774f9.
AFAIU the code, findDOMNode() shouldn't be needed, you can compare the current ref with the active element directly, since the type of ref.current extends Element:
if (ref.current === null || document.activeElement === ref.current) {
The text was updated successfully, but these errors were encountered:
https://reactjs.org/docs/react-dom.html#finddomnode
The
findDOMNode()
function call (and dependency onreact-dom
) has been added in 34774f9.AFAIU the code,
findDOMNode()
shouldn't be needed, you can compare the current ref with the active element directly, since the type ofref.current
extendsElement
:The text was updated successfully, but these errors were encountered: