gitbutlerapp / gitbutler

The GitButler version control client, backed by Git, powered by Tauri/Rust/Svelte
https://gitbutler.com
Other
13.4k stars 530 forks source link

Caret moves to the end of PR description on first input #5645

Open AndersRobstad opened 4 days ago

AndersRobstad commented 4 days ago

Version

0.13.16

Operating System

macOS

Distribution Method

dmg (Apple Silicon)

Describe the issue

When opening a PR with a template from Gitbutler the caret jumps to the end of the template on first keydown

How to reproduce

So when i place the caret at the top of the template to start writing I have to first click on any key, then move the caret back to the top, and then I'm able to start writing the PR description. In the video below I place the caret at the end of ## Description and hit Enter (any key causes the same behavior), then the caret moves to the end of the template.

Skjermopptak 2024-11-22 kl  08 55 09

Expected behavior

When having placed the caret inside the PR description I expect it to be placed there when I start writing

Relevant log output

No response

Byron commented 3 days ago

Thanks a lot for reporting and for the perfect description (and illustration) of the issue.

I could easily reproduce it as well and think that @estib-vega would fix this in a jiffy.