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

This commit is contained in:
zxhlyh 2025-06-25 11:34:58 +08:00 committed by GitHub
parent 449e16782e
commit 819c02f1f5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -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}