fix(ui): prevent click actions on disabled or loading context menu items

This commit is contained in:
melvinchia3636
2026-01-28 10:06:06 +08:00
parent 7bc623232b
commit 0dfc071e6c

View File

@@ -74,6 +74,10 @@ function ContextMenuItem({
)}
disabled={disabled || loading}
onClick={e => {
if (disabled || loading) {
return
}
e.stopPropagation()
if (!shouldCloseMenuOnClick) {