Skip to content

fix: Fix bug that prevented editing workspace comments on Firefox. #8779

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 20, 2025

Conversation

gonfunko
Copy link
Contributor

The basics

The details

Resolves

Fixes #8768

Proposed Changes

This PR fixes a bug that prevented editing the text of workspace comments on Firefox.

@gonfunko gonfunko requested a review from a team as a code owner February 18, 2025 20:46
@github-actions github-actions bot added the PR: fix Fixes a bug label Feb 18, 2025
// and steal focus away from the editor/comment.
e.stopPropagation();
} else {
gesture.handleCommentStart(e, this);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Next question: why is this not already fixed by the other uses of isTargetInput in inject.ts and gesture.ts?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

handleCommentStart() doesn't ever call doStart(), where isTargetInput() is checked; handleWsStart does, but by the time that's called the event has already bubbled up to the workspace and stolen focus away from the textarea, so it's too late. Likewise, inject.ts only checks it for keydown and contextmenu events, not clicks.

@gonfunko gonfunko merged commit 7e44e81 into google:develop Feb 20, 2025
7 checks passed
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.

Workspace comments aren't editable in Firefox
2 participants