Skip to content

Fix perspective_viewer::restore calls blurring#3005

Merged
texodus merged 1 commit into
masterfrom
fix-blur
Jun 10, 2025
Merged

Fix perspective_viewer::restore calls blurring#3005
texodus merged 1 commit into
masterfrom
fix-blur

Conversation

@texodus

@texodus texodus commented Jun 9, 2025

Copy link
Copy Markdown
Member

This PR fixes a small bug which causes Perspective to steal focus via document.activeElement.blur() when DOM-reconstructing API methods are called, like perspective_viewer::restore. This was done intentionally to make sure that modal windows and dropdowns rooted in the UI are dismissed before their parent widgets are removed, but this behavior is no longer necessary for this case. A test has also been added to assert focus is not stolen.

@texodus texodus added the bug Concrete, reproducible bugs label Jun 9, 2025
Signed-off-by: Andrew Stein <steinlink@gmail.com>
@texodus texodus merged commit 6907ef9 into master Jun 10, 2025
14 checks passed
@texodus texodus deleted the fix-blur branch June 10, 2025 03:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Concrete, reproducible bugs

Development

Successfully merging this pull request may close these issues.

1 participant