Skip to content

Commit 6383f01

Browse files
authored
🩹 Remove existing color swatch before appending a new one (#69)
1 parent 2a46519 commit 6383f01

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

assets/field.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@
6464
.click();
6565
}
6666

67+
$(this)
68+
.find('.acf-label label .component-color-indicator')
69+
.remove()
70+
6771
$(this)
6872
.find('.acf-label label')
6973
.append(

0 commit comments

Comments
 (0)