From 1024e63f3a75d653e39ae8c617c1fcbc2ee13212 Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Sun, 3 Mar 2024 19:30:13 -0600 Subject: [PATCH] Make disabled elements not eat up mouse events Browsers make disabled elements eat events rather than let them bubble up This allows containers with disabled elements to have listeners still (Used specifically so after the board rewrite, purchased upgrades can still be dragged) --- src/main.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.css b/src/main.css index 60188bd..f84ba5f 100644 --- a/src/main.css +++ b/src/main.css @@ -66,3 +66,7 @@ ul { .Vue-Toastification__toast { margin: unset; } + +:disabled { + pointer-events: none; +}