Skip to content

Commit

Permalink
Merge pull request #1802 from gregnb/bugfix/onClose_option
Browse files Browse the repository at this point in the history
fix popover bug
  • Loading branch information
wdh2100 authored Oct 25, 2021
2 parents 02697e6 + 73c6a3c commit 8e5bd6d
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 8e5bd6d

Please sign in to comment.