Skip to content

Commit

Permalink
🐛 Now clicking on <path> of svg will delete the color correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
keelus committed Jul 30, 2023
1 parent ada0204 commit 41171fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/static/js/panels/LedControl.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ $(".checkLine").on("click", (e) => {
$(".color:not(.color.new)").on("click", (e) => {
e.preventDefault()

if($(e.target).hasClass("delete") || $(e.target).is("svg")){
if($(e.target).hasClass("delete") || $(e.target).is("svg") || $(e.target).is("path")){
return false
}

Expand Down

0 comments on commit 41171fa

Please sign in to comment.