Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
- rollback onClose option
  • Loading branch information
wdh2100 committed Oct 25, 2021
1 parent 6376e82 commit 73c6a3c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/Popover.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState, useRef, useEffect } from 'react';
import React, { useEffect, useRef, useState } from 'react';
import PropTypes from 'prop-types';
import MuiPopover from '@material-ui/core/Popover';
import IconButton from '@material-ui/core/IconButton';
Expand Down Expand Up @@ -59,7 +59,8 @@ const Popover = ({ className, trigger, refExit, hide, content, ...providedProps
<MuiPopover
elevation={2}
open={isOpen}
TransitionProps={{ onExited: handleOnExit, onClose: handleRequestClose }}
TransitionProps={{ onExited: handleOnExit }}
onClose={handleRequestClose}
anchorEl={anchorEl.current}
anchorOrigin={anchorOriginSpecs}
transformOrigin={transformOriginSpecs}
Expand Down

0 comments on commit 73c6a3c

Please sign in to comment.