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