Skip to content

Commit 3ef0e4f

Browse files
increase debounce time for input changes to avoid jumping cursor
1 parent 0069cbc commit 3ef0e4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/packages/lowcoder/src/base/codeEditor/codeEditor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ function useCodeMirror(
224224
window.clearTimeout(isTypingRef.current);
225225
isTypingRef.current = window.setTimeout(() => (isTypingRef.current = 0), 100);
226226
onChange?.(state);
227-
}, 100)
227+
}, 1000)
228228
, [onChange]
229229
);
230230

0 commit comments

Comments
 (0)