Try to fix Color picker of lists is empty. Part 6.

Thanks to bronger and xet7 !

Related #3418
This commit is contained in:
Lauri Ojansivu 2021-01-06 22:15:06 +02:00
parent ff8d899266
commit 4649553c5e
2 changed files with 6 additions and 2 deletions

View file

@ -279,7 +279,11 @@ BlazeComponent.extendComponent({
},
isSelected(color) {
return this.currentColor.get() === color;
if (this.currentColor.get() === null) {
return color === 'white';
} else {
return this.currentColor.get() === color;
}
},
events() {