Skip to content

fix: Ensure deterministic height adjustment in handleKeydown #1863

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

calycekr
Copy link
Contributor

@calycekr calycekr commented Jul 4, 2025

This PR improves the fix introduced in #1854 by ensuring the textarea height adjustment completes deterministically after the submit event is dispatched.

Previously, there was a race condition where the textarea height adjustment could be scheduled but not applied before submission, leading to inconsistent UI behavior.

Changes:

  • Improved the existing logic by tick().then() in handleKeydown ensuring DOM updates are applied after the submit event is dispatched.

Fixes: #1854

Improved the existing logic by `tick().then()` in `handleKeydown` ensuring DOM updates are applied after the submit event is dispatched.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant