Open majornista opened 9 months ago
el.activeElement in the following method will be null if el is a document fragment rather than an element, which throws a runtime error:
el.activeElement
null
el
https://github.com/reactjs/react-modal/blob/a275399059cc37aa02cac7e9385512b02ff5cf15/src/helpers/scopeTab.js#L3-L7
el.activeElement
in the following method will benull
ifel
is a document fragment rather than an element, which throws a runtime error:https://github.com/reactjs/react-modal/blob/a275399059cc37aa02cac7e9385512b02ff5cf15/src/helpers/scopeTab.js#L3-L7