Skip to content

Conversation

@gonfunko
Copy link
Contributor

The basics

The details

Resolves

Fixes #9126

Proposed Changes

This PR fixes the behavior for non-autoclosing flyouts. As part of the recent focus changes, flyouts were more or less forced to always autoclose. This is because Toolbox.clearSelection() winds up calling this.setSelectedItem(null) -> this.updateFlyout(*, null), and the latter unconditionally hides the flyout if the new item is null. Now, in situations where the toolbox is losing focus, its autoHide method is called, which gates the call to clearSelection() on a check for whether the toolbox's flyout is in autoclose mode. The explicit call to Flyout.autoHide in WorkspaceSvg has been removed because it's redundant as the prior call to autoHide() on the toolbox will wind up invoking it.

@gonfunko gonfunko requested a review from a team as a code owner July 17, 2025 21:14
@gonfunko gonfunko requested a review from rachel-fenichel July 17, 2025 21:14
@github-actions github-actions bot added the PR: fix Fixes a bug label Jul 17, 2025
Copy link
Collaborator

@rachel-fenichel rachel-fenichel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding tests.

@gonfunko gonfunko merged commit 3c7add5 into develop Jul 18, 2025
17 checks passed
@gonfunko gonfunko deleted the autoclose branch July 18, 2025 21:27
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.

3 participants