소스 검색

fix: prompt editor click to insert variable (#21470)

tags/1.5.0
zxhlyh 4 달 전
부모
커밋
819c02f1f5
No account linked to committer's email address
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4
    0
      web/app/components/base/prompt-editor/plugins/component-picker-block/variable-option.tsx

+ 4
- 0
web/app/components/base/prompt-editor/plugins/component-picker-block/variable-option.tsx 파일 보기

@@ -44,6 +44,10 @@ export const VariableMenuItem = memo(({
tabIndex={-1}
ref={setRefElement}
onMouseEnter={onMouseEnter}
onMouseDown={(e) => {
e.preventDefault()
e.stopPropagation()
}}
onClick={onClick}>
<div className='mr-2'>
{icon}

Loading…
취소
저장