Make disabled elements not eat up mouse events
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 55s
Run Tests / test (push) Successful in 2m5s

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)
This commit is contained in:
thepaperpilot 2024-03-03 19:30:13 -06:00 committed by thepaperpilot
parent 660528ea00
commit c30724d907

View file

@ -66,3 +66,7 @@ ul {
.Vue-Toastification__toast { .Vue-Toastification__toast {
margin: unset; margin: unset;
} }
:disabled {
pointer-events: none;
}