fix: prompt editor click to insert variable (#21470)
This commit is contained in:
@@ -44,6 +44,10 @@ export const VariableMenuItem = memo(({
|
|||||||
tabIndex={-1}
|
tabIndex={-1}
|
||||||
ref={setRefElement}
|
ref={setRefElement}
|
||||||
onMouseEnter={onMouseEnter}
|
onMouseEnter={onMouseEnter}
|
||||||
|
onMouseDown={(e) => {
|
||||||
|
e.preventDefault()
|
||||||
|
e.stopPropagation()
|
||||||
|
}}
|
||||||
onClick={onClick}>
|
onClick={onClick}>
|
||||||
<div className='mr-2'>
|
<div className='mr-2'>
|
||||||
{icon}
|
{icon}
|
||||||
|
Reference in New Issue
Block a user