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 2ad2fcc commit 0e1bde0Copy full SHA for 0e1bde0
src/components/block-styles-control/index.js
@@ -156,7 +156,6 @@ export const BlockStylesControl = props => {
156
if ( ! openPopover && ! popoverOnCloseRef.current ) {
157
setOpenPopover( true )
158
}
159
- popoverOnCloseRef.current = false
160
} }
161
ref={ buttonRef }
162
>
@@ -191,6 +190,7 @@ export const BlockStylesControl = props => {
191
190
setOpenPopover( false )
192
// This prevents the popover from reopening if the button was clicked
193
popoverOnCloseRef.current = true
+ setTimeout( () => popoverOnCloseRef.current = false, 100 )
194
195
anchor={ buttonRef.current }
196
placement="bottom-end"
0 commit comments