Skip to content

fix: Fix loss of focus when deleting blocks via context menu#9951

Merged
gonfunko merged 1 commit into
v13from
delete-menu
Jun 2, 2026
Merged

fix: Fix loss of focus when deleting blocks via context menu#9951
gonfunko merged 1 commit into
v13from
delete-menu

Conversation

@gonfunko
Copy link
Copy Markdown
Contributor

@gonfunko gonfunko commented Jun 2, 2026

The basics

The details

Proposed Changes

This PR fixes a loss of focus when blocks were deleted from the context menu. Blocks find and focus the next-best neighbor in their dispose() method, but only when they are currently focused. When deletion is triggered by the context menu, the context menu is focused, so the check was bypassed. The context menu handler now focuses the block before invoking dispose().

@gonfunko gonfunko requested a review from a team as a code owner June 2, 2026 10:41
@gonfunko gonfunko requested a review from lizschwab June 2, 2026 10:41
@github-actions github-actions Bot added the PR: fix Fixes a bug label Jun 2, 2026
@gonfunko gonfunko merged commit 1cac226 into v13 Jun 2, 2026
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: fix Fixes a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants