Skip to content

Conversation

texodus
Copy link
Member

@texodus texodus commented Jun 9, 2025

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
@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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant