fix: prompt editor click to insert variable (#21470)
This commit is contained in:
parent
449e16782e
commit
819c02f1f5
1 changed files with 4 additions and 0 deletions
|
|
@ -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}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue