mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-04-27 09:26:23 +02:00
hide chat instead of unmount (#181)
This commit is contained in:
parent
2da3f3708c
commit
d99419ad61
2 changed files with 3 additions and 4 deletions
|
|
@ -47,6 +47,7 @@ export const Textarea = forwardRef<HTMLTextAreaElement, TextareaProps>(({
|
|||
}
|
||||
}, [propValue, isEditing]);
|
||||
|
||||
/*
|
||||
useEffect(() => {
|
||||
if (!autoResize) return;
|
||||
|
||||
|
|
@ -68,6 +69,7 @@ export const Textarea = forwardRef<HTMLTextAreaElement, TextareaProps>(({
|
|||
window.addEventListener('resize', adjustHeight);
|
||||
return () => window.removeEventListener('resize', adjustHeight);
|
||||
}, [localValue, autoResize, maxHeight, textareaRef]);
|
||||
*/
|
||||
|
||||
const validateAndUpdate = (value: string) => {
|
||||
if (validate) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue