mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-21 15:24:09 +00:00
[fix] close modal on click
This commit is contained in:
@@ -31,10 +31,6 @@ export const useAssetBrowserDialog = () => {
|
||||
props.onAssetSelected?.(assetPath)
|
||||
}
|
||||
|
||||
const handleClose = () => {
|
||||
hide()
|
||||
}
|
||||
|
||||
// Default dialog configuration for AssetBrowserModal
|
||||
const dialogComponentProps = {
|
||||
headless: true,
|
||||
@@ -74,7 +70,7 @@ export const useAssetBrowserDialog = () => {
|
||||
currentValue: props.currentValue,
|
||||
assets,
|
||||
onSelect: handleAssetSelected,
|
||||
onClose: handleClose
|
||||
onClose: () => hide()
|
||||
},
|
||||
dialogComponentProps
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user