mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix bug
This commit is contained in:
parent
2933d81118
commit
d9acb0eea6
@ -101,6 +101,8 @@ const ParamPositiveConditioning = () => {
|
|||||||
[dispatch, onClose, prompt]
|
[dispatch, onClose, prompt]
|
||||||
);
|
);
|
||||||
|
|
||||||
|
const isTiEmbeddingEnabled = useFeatureStatus('tiEmbedding').isFeatureEnabled;
|
||||||
|
|
||||||
const handleKeyDown = useCallback(
|
const handleKeyDown = useCallback(
|
||||||
(e: KeyboardEvent<HTMLTextAreaElement>) => {
|
(e: KeyboardEvent<HTMLTextAreaElement>) => {
|
||||||
if (e.key === 'Enter' && e.shiftKey === false && isReady) {
|
if (e.key === 'Enter' && e.shiftKey === false && isReady) {
|
||||||
@ -115,8 +117,6 @@ const ParamPositiveConditioning = () => {
|
|||||||
[isReady, dispatch, activeTabName, onOpen, isTiEmbeddingEnabled]
|
[isReady, dispatch, activeTabName, onOpen, isTiEmbeddingEnabled]
|
||||||
);
|
);
|
||||||
|
|
||||||
const isTiEmbeddingEnabled = useFeatureStatus('tiEmbedding').isFeatureEnabled;
|
|
||||||
|
|
||||||
// const handleSelect = (e: MouseEvent<HTMLTextAreaElement>) => {
|
// const handleSelect = (e: MouseEvent<HTMLTextAreaElement>) => {
|
||||||
// const target = e.target as HTMLTextAreaElement;
|
// const target = e.target as HTMLTextAreaElement;
|
||||||
// setCaret({ start: target.selectionStart, end: target.selectionEnd });
|
// setCaret({ start: target.selectionStart, end: target.selectionEnd });
|
||||||
|
Loading…
Reference in New Issue
Block a user