This commit is contained in:
Mary Hipp 2024-02-28 11:49:56 -05:00
parent 6eb4c1ccb6
commit 8566c1c7ff
2 changed files with 1 additions and 5 deletions

View File

@ -51,7 +51,7 @@ export const ParamPositivePrompt = memo(() => {
value={prompt}
placeholder={t('parameters.positivePromptPlaceholder')}
onChange={onChange}
minH={32}
minH={28}
onKeyDown={onKeyDown}
variant="darkFilled"
/>

View File

@ -22,7 +22,6 @@ export const usePrompt = ({ prompt, textareaRef, onChange: _onChange }: UseInser
const insertTrigger = useCallback(
(v: string) => {
console.log({ textareaRef })
if (!textareaRef.current) {
return;
}
@ -42,7 +41,6 @@ export const usePrompt = ({ prompt, textareaRef, onChange: _onChange }: UseInser
const finalCaretPos = newPrompt.length;
newPrompt += prompt.slice(caret);
console.log({ newPrompt })
// must flush dom updates else selection gets reset
flushSync(() => {
@ -58,8 +56,6 @@ export const usePrompt = ({ prompt, textareaRef, onChange: _onChange }: UseInser
const onFocus = useCallback(() => {
console.log("focus")
console.log(textareaRef.current)
textareaRef.current?.focus();
}, [textareaRef]);