fix: Prevent loss of focus when deleting a workspace comment. (#9200)

* fix: Prevent loss of focus when deleting a workspace comment.

* chore: Add test verifying workspace comment focus behavior on deletion.
This commit is contained in:
Aaron Dodson
2025-07-08 13:50:26 -07:00
committed by GitHub
parent 8580d763b3
commit fc9164de8f
2 changed files with 13 additions and 0 deletions

View File

@@ -5,6 +5,7 @@
*/
import * as browserEvents from '../browser_events.js';
import {getFocusManager} from '../focus_manager.js';
import * as touch from '../touch.js';
import * as dom from '../utils/dom.js';
import {Svg} from '../utils/svg.js';
@@ -98,5 +99,6 @@ export class DeleteCommentBarButton extends CommentBarButton {
this.getParentComment().dispose();
e?.stopPropagation();
getFocusManager().focusNode(this.workspace);
}
}