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 b35a1f4cbc
commit 465a02f9b0

View File

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