Skip to content

fix: Don't keep jumping to the start of the PR content #8118

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
Apr 11, 2025
Merged

Conversation

estib-vega
Copy link
Contributor

@estib-vega estib-vega commented Apr 11, 2025

The caret would keep jumping at the beginning of the review creation modal description field, because there was an effect that would set the description value everytime the pr body would change.

This was dumb.

The motivation behind that was to be able to set the pr description content programatically for e.g. generating the description.

In order to do so now, though, we just let the set method optionally flush the value to the description input when programmatically setting the content

  • Don't update the rich text content editor from an effect block
  • Templates are tracked from within the class in order to track the updates to it

Copy link

vercel bot commented Apr 11, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
gitbutler-components ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 11, 2025 7:56am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
gitbutler-web ⬜️ Skipped (Inspect) Apr 11, 2025 7:56am

Keep track of the review template in the reactive body class, in order to be able to update the content according to the desired behavior
@vercel vercel bot temporarily deployed to Preview – gitbutler-web April 11, 2025 07:55 Inactive
@estib-vega estib-vega merged commit 616d14e into master Apr 11, 2025
19 checks passed
@estib-vega estib-vega deleted the e-branch-8 branch April 11, 2025 07:58
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.

1 participant