We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49bd37b commit 3d82691Copy full SHA for 3d82691
src/color-scale/color-scale.js
@@ -63,7 +63,7 @@ const Self = class ColorScale extends ColorElement {
63
else if (event.type === "input") {
64
this.updateColorName(source.closest("color-swatch"), source.value);
65
}
66
- else if (event.type === "click" && source.matches("button.delete-button")) {
+ else if (event.type === "click" && source.closest("button.delete-button")) {
67
this.deleteColor(source.closest("color-swatch"));
68
69
0 commit comments