mirror of
https://github.com/Lifeforge-app/lifeforge.git
synced 2026-06-28 06:46:24 +00:00
fix(ui): prevent click actions on disabled or loading context menu items
This commit is contained in:
@@ -74,6 +74,10 @@ function ContextMenuItem({
|
||||
)}
|
||||
disabled={disabled || loading}
|
||||
onClick={e => {
|
||||
if (disabled || loading) {
|
||||
return
|
||||
}
|
||||
|
||||
e.stopPropagation()
|
||||
|
||||
if (!shouldCloseMenuOnClick) {
|
||||
|
||||
Reference in New Issue
Block a user