mirror of
https://github.com/langgenius/dify.git
synced 2026-03-25 00:07:56 +08:00
fix(workflow): avoid nested button in skill file tree menu
This commit is contained in:
@ -81,13 +81,15 @@ const MenuItem = ({ icon: Icon, label, kbd, onClick, disabled, variant, tooltip
|
||||
popupContent={tooltip}
|
||||
position="right"
|
||||
>
|
||||
<button
|
||||
type="button"
|
||||
<span
|
||||
className="flex shrink-0 items-center justify-center"
|
||||
onClick={e => e.stopPropagation()}
|
||||
onClick={(event) => {
|
||||
event.preventDefault()
|
||||
event.stopPropagation()
|
||||
}}
|
||||
>
|
||||
<RiQuestionLine className="size-4 text-text-quaternary hover:text-text-tertiary" />
|
||||
</button>
|
||||
</span>
|
||||
</Tooltip>
|
||||
)}
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user