Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/components/native-inserter/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,11 @@ export default function NativeBlockInserterButton( { open, onToggle } ) {
title={ __( 'Add block' ) }
icon={ plus }
onClick={ () => {
onToggle( true );
// Skip the redux toggle and present the native inserter
// directly. Flipping `isInserterOpened` in editorStore would
// briefly render Gutenberg's web inserter behind the native
// dialog before it covers, causing a visible flash.
prepareAndShowInserter();
} }
onMouseDown={ ( e ) => {
e.preventDefault();
Expand Down
Loading