Skip to content

fix: Make dialog handling of ephemeral focus more robust#10064

Merged
gonfunko merged 1 commit into
mainfrom
brine-shrimp
Jun 24, 2026
Merged

fix: Make dialog handling of ephemeral focus more robust#10064
gonfunko merged 1 commit into
mainfrom
brine-shrimp

Conversation

@gonfunko

Copy link
Copy Markdown
Contributor

The basics

The details

Proposed Changes

This PR makes the dialog system check to ensure that nothing else is holding ephemeral focus before attempting to claim it itself. Claiming ephemeral focus when it is already held throws, and this could be triggered by e.g. showing a dialog from content in a widgetdiv (which already/also claims ephemeral focus). Now, if ephemeral focus is held, the dialog system doesn't claim it, and when the dialog reference count reaches 0, it will not attempt to restore focus since it won't hold a callback to invoke.

@gonfunko gonfunko requested a review from a team as a code owner June 24, 2026 15:56
@gonfunko gonfunko requested a review from lizschwab June 24, 2026 15:56
@github-actions github-actions Bot added the PR: fix Fixes a bug label Jun 24, 2026
@gonfunko gonfunko merged commit 26b6fad into main Jun 24, 2026
9 checks passed
@gonfunko gonfunko deleted the brine-shrimp branch June 24, 2026 16:07
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