Skip to content

Commit 3d82691

Browse files
Fix regression
1 parent 49bd37b commit 3d82691

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/color-scale/color-scale.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ const Self = class ColorScale extends ColorElement {
6363
else if (event.type === "input") {
6464
this.updateColorName(source.closest("color-swatch"), source.value);
6565
}
66-
else if (event.type === "click" && source.matches("button.delete-button")) {
66+
else if (event.type === "click" && source.closest("button.delete-button")) {
6767
this.deleteColor(source.closest("color-swatch"));
6868
}
6969

0 commit comments

Comments
 (0)