We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99b4e94 commit 01509c3Copy full SHA for 01509c3
components/lib/usePopover.es6.js
@@ -7,6 +7,7 @@ function usePopover (isProcessing) {
7
(popoverName) => {
8
if (isProcessing) return
9
10
+ // If the clicked popover name is the same, set it to null to close it. Otherwise set it to the name of the clicked popover to open it
11
setActivePopover((current) => (current === popoverName ? null : popoverName))
12
},
13
[isProcessing],
0 commit comments