We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54c0bb3 commit 0d0f06eCopy full SHA for 0d0f06e
apps/desktop/src/components/CommitMessageEditor.svelte
@@ -199,8 +199,11 @@
199
{aiIsLoading}
200
{suggestionsHandler}
201
useRuler={uiState.global.useRuler.current}
202
- onChange={(text: string) => {
203
- onChange?.({ description: text });
+ onChange={(value) => {
+ // Updating the description prevents resetting the editor value
204
+ // when toggling between inline and modal view.
205
+ description = value;
206
+ onChange?.({ description: value });
207
}}
208
onKeyDown={(e: KeyboardEvent) => {
209
if (e.key === 'Tab' && e.shiftKey) {
0 commit comments