Skip to content

Commit c67e523

Browse files
committed
rm console log
1 parent c4ce55a commit c67e523

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed
-58 Bytes
Binary file not shown.

examples/server/webui/src/components/ChatScreen.tsx

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -303,11 +303,6 @@ function useOptimizedTextarea(initValue: string): OptimizedTextareaValue {
303303
useEffect(() => {
304304
if (textareaRef.current) {
305305
textareaRef.current.value = savedInitValue;
306-
console.log(
307-
'useOptimizedTextarea: set initValue',
308-
savedInitValue,
309-
textareaRef.current
310-
);
311306
}
312307
}, [textareaRef, savedInitValue]);
313308

@@ -318,19 +313,13 @@ function useOptimizedTextarea(initValue: string): OptimizedTextareaValue {
318313
setValue: (value: string) => {
319314
if (textareaRef.current) {
320315
textareaRef.current.value = value;
321-
console.log(
322-
'useOptimizedTextarea: set value',
323-
value,
324-
textareaRef.current
325-
);
326316
}
327317
},
328318
focus: () => {
329319
if (textareaRef.current) {
330320
// focus and move the cursor to the end
331321
textareaRef.current.focus();
332322
textareaRef.current.selectionStart = textareaRef.current.value.length;
333-
console.log('useOptimizedTextarea: focus', textareaRef.current);
334323
}
335324
},
336325
ref: textareaRef,

0 commit comments

Comments
 (0)