[bugfix] Fix bulk action context menu not emitting events (#8065)

This commit is contained in:
Jin Yi
2026-01-15 11:43:33 +09:00
committed by GitHub
parent 538f007f1d
commit 29f727a946
2 changed files with 5 additions and 2 deletions

View File

@@ -486,7 +486,10 @@ function handleAssetContextMenu(event: MouseEvent, asset: AssetItem) {
}
function handleContextMenuHide() {
contextMenuAsset.value = null
// Delay clearing to allow command callbacks to emit before component unmounts
requestAnimationFrame(() => {
contextMenuAsset.value = null
})
}
const handleZoomClick = (asset: AssetItem) => {

View File

@@ -63,10 +63,10 @@ const {
const emit = defineEmits<{
zoom: []
hide: []
'asset-deleted': []
'bulk-download': [assets: AssetItem[]]
'bulk-delete': [assets: AssetItem[]]
hide: []
'bulk-add-to-workflow': [assets: AssetItem[]]
'bulk-open-workflow': [assets: AssetItem[]]
'bulk-export-workflow': [assets: AssetItem[]]