Skip to content

Commit

Permalink
feat: attach listener only to isVisible popup
Browse files Browse the repository at this point in the history
  • Loading branch information
mananjadhav committed Aug 23, 2022
1 parent 4bc3cc2 commit ff0a77f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/PopoverMenu/BasePopoverMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class BasePopoverMenu extends PureComponent {
}

componentDidMount() {
if (!this.props.enableArrowKeysActions) {
if (!this.props.enableArrowKeysActions && !this.props.isVisible) {
return;
}

Expand Down

0 comments on commit ff0a77f

Please sign in to comment.