This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
OpenSource
/
dify
Watch
4
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
152
Wiki
Activity
Browse Source
fix: prompt editor click to insert variable (
#21470
)
tags/1.5.0
zxhlyh
4 months ago
parent
449e16782e
commit
819c02f1f5
No account linked to committer's email address
1 changed files
with
4 additions
and
0 deletions
Split View
Show Diff Stats
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
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}
Write
Preview
Loading…
Cancel
Save