diff --git a/.changeset/grumpy-squids-dance.md b/.changeset/grumpy-squids-dance.md new file mode 100644 index 00000000000..caf62757291 --- /dev/null +++ b/.changeset/grumpy-squids-dance.md @@ -0,0 +1,5 @@ +--- +'@shopify/polaris': patch +--- + +Fixed PopoverOverlay not closing diff --git a/polaris-react/src/components/Popover/components/PopoverOverlay/PopoverOverlay.tsx b/polaris-react/src/components/Popover/components/PopoverOverlay/PopoverOverlay.tsx index e8c87e0c083..2f61522816e 100644 --- a/polaris-react/src/components/Popover/components/PopoverOverlay/PopoverOverlay.tsx +++ b/polaris-react/src/components/Popover/components/PopoverOverlay/PopoverOverlay.tsx @@ -112,6 +112,7 @@ export class PopoverOverlay extends PureComponent { } if (!this.props.active && oldProps.active) { + this.clearTransitionTimeout(); this.setState({transitionStatus: TransitionStatus.Exited}); } }