fix(ModelList): stop propagation (#8685)

This commit is contained in:
one 2025-07-30 20:32:24 +08:00 committed by GitHub
parent 236a6bdcb0
commit 80409cd94e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -72,7 +72,10 @@ const ModelListGroup: React.FC<ModelListGroupProps> = ({
type="text"
className="toolbar-item"
icon={<MinusOutlined />}
onClick={onRemoveGroup}
onClick={(e) => {
e.stopPropagation()
onRemoveGroup()
}}
disabled={disabled}
/>
</Tooltip>