File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ export default class Popup extends React.PureComponent {
147147 e . stopPropagation ( ) ;
148148 }
149149 } ;
150- if ( ! modal && on . includes ( "hover" ) ) {
150+ if ( ! modal && on . indexOf ( "hover" ) >= 0 ) {
151151 childrenElementProps . onMouseEnter = this . onMouseEnter ;
152152 childrenElementProps . onMouseLeave = this . onMouseLeave ;
153153 }
@@ -199,7 +199,7 @@ export default class Popup extends React.PureComponent {
199199 render ( ) {
200200 const { overlayStyle, closeOnDocumentClick, on } = this . props ;
201201 const { modal } = this . state ;
202- const overlay = this . state . isOpen && ! on . includes ( "hover" ) ;
202+ const overlay = this . state . isOpen && ! ( on . indexOf ( "hover" ) >= 0 ) ;
203203 const ovStyle = modal ? styles . overlay . modal : styles . overlay . tooltip ;
204204 return [
205205 this . state . isOpen && (
You can’t perform that action at this time.
0 commit comments