Skip to content

fix(app): fix issue with scroll jumping when pressing escape in comment text area#15374

Merged
nexxeln merged 1 commit intoanomalyco:devfrom
yihuikhuu:fix-comment-escape-scroll-jump
Mar 9, 2026
Merged

fix(app): fix issue with scroll jumping when pressing escape in comment text area#15374
nexxeln merged 1 commit intoanomalyco:devfrom
yihuikhuu:fix-comment-escape-scroll-jump

Conversation

@yihuikhuu
Copy link
Contributor

Issue for this PR

Closes #15373

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

This blurs the textarea before triggering the onCancel. It appears Safari/Webkit has some kind of focus recovery behaviour if the currently focused textarea is removed, which was causing the issue. Blurring/unfocusing the textarea before removing it appears to fix the issue.

How did you verify your code works?

Tested in Safari and in Desktop view locally.

Screenshots / recordings

Before:

escapebefore.mov

After:

escapeafter.mov

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

If you do not follow this template your PR will be automatically rejected.

@nexxeln nexxeln merged commit 3432882 into anomalyco:dev Mar 9, 2026
12 checks passed
tallpizza pushed a commit to tallpizza/ontology that referenced this pull request Mar 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pressing escape to close comment view causes review view to jump to the top of the file

2 participants