Skip to content

Commit

Permalink
check if still needed
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Aug 13, 2024
1 parent c0f2750 commit 1b2ea33
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,6 @@ export default function useArrowNav() {
);

if ( closestTabbable ) {
node.contentEditable = false;
placeCaretAtVerticalEdge(
closestTabbable,
// When Alt is pressed, place the caret at the furthest
Expand All @@ -312,7 +311,6 @@ export default function useArrowNav() {
isReverseDir,
node
);
node.contentEditable = false;
placeCaretAtHorizontalEdge( closestTabbable, isReverse );
event.preventDefault();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ export default function useSelectionObserver() {
const selection = defaultView.getSelection();

if ( ! selection.rangeCount ) {
setContentEditableWrapper( node, false );
return;
}

Expand All @@ -123,6 +124,7 @@ export default function useSelectionObserver() {
! node.contains( startNode ) ||
! node.contains( endNode )
) {
setContentEditableWrapper( node, false );
return;
}

Expand Down

0 comments on commit 1b2ea33

Please sign in to comment.