Skip to content

Commit

Permalink
Make disabled elements not eat up mouse events
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
thepaperpilot authored and thepaperpilot committed Mar 8, 2024
1 parent 660528e commit c30724d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,7 @@ ul {
.Vue-Toastification__toast {
margin: unset;
}

:disabled {
pointer-events: none;
}

0 comments on commit c30724d

Please sign in to comment.