mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
cleanup
This commit is contained in:
parent
6eb4c1ccb6
commit
8566c1c7ff
@ -51,7 +51,7 @@ export const ParamPositivePrompt = memo(() => {
|
||||
value={prompt}
|
||||
placeholder={t('parameters.positivePromptPlaceholder')}
|
||||
onChange={onChange}
|
||||
minH={32}
|
||||
minH={28}
|
||||
onKeyDown={onKeyDown}
|
||||
variant="darkFilled"
|
||||
/>
|
||||
|
@ -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]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user