소스 검색

fix: improve selection of variable in workflow (#15484)

Signed-off-by: Yuichiro Utsumi <utsumi.yuichiro@fujitsu.com>
Yuichiro Utsumi 4 달 전
부모
커밋
71a57275ab
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      web/app/components/workflow/nodes/_base/components/variable/var-reference-vars.tsx

+ 1 - 0
web/app/components/workflow/nodes/_base/components/variable/var-reference-vars.tsx

@@ -109,6 +109,7 @@ const Item: FC<ItemProps> = ({
             'relative w-full flex items-center h-6 pl-3  rounded-md cursor-pointer')
           }
           onClick={handleChosen}
+          onMouseDown={e => e.preventDefault()}
         >
           <div className='flex items-center w-0 grow'>
             {!isEnv && !isChatVar && <Variable02 className={cn('shrink-0 w-3.5 h-3.5 text-text-accent', isException && 'text-text-warning')} />}