Skip to content

fix(textarea): ensure viewport content is set during update #822

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: v2-exp
Choose a base branch
from

Conversation

aymanbagabas
Copy link
Member

This ensures that the viewport content is set and persisted correctly. Setting the content during View doesn't work because it mutates a copy of the model instead without persisting the changes. Moreover, any after effects of setting the content won't be visible because the next Update will be called on the older model, not the new one.

This ensures that the viewport content is set and persisted correctly.
Setting the content during View won't doesn't work because it mutates a
copy of the model instead without persisting the changes. Moreover, any
after effects of setting the content won't be visible because the next
Update will be called on the older model, not the new one.
aymanbagabas added a commit to charmbracelet/crush that referenced this pull request Aug 1, 2025
…0-c4068c642c90

This fixes a bug where the editor won't scroll after paste. See charmbracelet/bubbles#822
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.

4 participants