Skip to content

Commit 0793684

Browse files
committed
Fix writing flow after rebase
1 parent 40d1191 commit 0793684

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

editor/components/writing-flow/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,10 @@ class WritingFlow extends Component {
224224

225225
if ( ( navigateDown && nextBlockUid ) || ( navigateUp && previousBlockUid ) ) {
226226
event.preventDefault();
227-
this.moveSelection( navigateUp );
227+
const focusedBlockUid = navigateUp ? previousBlockUid : nextBlockUid;
228+
if ( focusedBlockUid ) {
229+
this.props.onSelectBlock( focusedBlockUid );
230+
}
228231
}
229232

230233
// Special case when reaching the end of the blocks (navigate to the next tabbable outside of the writing flow)

0 commit comments

Comments
 (0)