Skip to content

Commit

Permalink
Add general cleanup to writing flow hook
Browse files Browse the repository at this point in the history
  • Loading branch information
stokesman committed Feb 11, 2025
1 parent fc0b9b1 commit 7d6dd86
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/block-editor/src/components/writing-flow/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,13 @@ export function useWritingFlow() {
},
[ hasMultiSelection ]
),
useRefEffect(
( node ) => () => {
node.removeAttribute( 'tabindex' );
node.removeAttribute( 'contenteditable' );
},
[]
),
] ),
after,
];
Expand Down

0 comments on commit 7d6dd86

Please sign in to comment.