mirror of https://github.com/langgenius/dify.git
fix: prompt editor click to insert variable (#21470)
This commit is contained in:
parent
449e16782e
commit
819c02f1f5
|
|
@ -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…
Reference in New Issue