Skip to content

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