Skip to content

Commit 1fdb234

Browse files
authored
Fix usePopover subsequent click issue (#600)
1 parent 2811cec commit 1fdb234

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [UNRELEASED]
9+
10+
### Fixed
11+
12+
- `usePopover` issue where the next click after a popover closes is canceled
13+
814
## [0.7.20] - 2020-02-25
915

1016
### Fixed

packages/components/src/Popover/Popover.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@ function usePopoverToggle(
310310

311311
function handleClickOutside(event: MouseEvent) {
312312
checkCloseAndStopEvent(event)
313+
setMouseDownTarget(null)
313314
}
314315

315316
function handleMouseUp() {

0 commit comments

Comments
 (0)