File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
global/components/Overlay
reader/containers/annotation/annotatable-components Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import PropTypes from "prop-types";
33import { FocusTrap } from "focus-trap-react" ;
44import { useUID } from "react-uid" ;
55import Header from "./Header" ;
6- import { closest } from "reader/containers/annotation/annotatable-components/selectionHelpers" ;
6+ import helpers from "reader/containers/annotation/annotatable-components/selectionHelpers" ;
77
88import BodyClass from "hoc/BodyClass" ;
99
@@ -26,7 +26,7 @@ function Overlay({
2626 const headerId = useUID ( ) ;
2727
2828 function handleCloseEvent ( event ) {
29- const dialog = closest ( event . target , "dialog" ) ;
29+ const dialog = helpers . closest ( event . target , "dialog" ) ;
3030 if ( dialog ) return false ;
3131
3232 if ( closeCallback ) {
Original file line number Diff line number Diff line change 55 findFirstMathUuidNode
66} from "./mathHelpers" ;
77
8- export const closest = ( el , selector ) => {
8+ const closest = ( el , selector ) => {
99 let element = el ;
1010 const matchesSelector =
1111 element . matches ||
You can’t perform that action at this time.
0 commit comments