fix colour control random button disabled state

This commit is contained in:
zombieFox 2021-09-04 16:07:41 +01:00
parent e50054bf1d
commit 6fee85ca1a

View File

@ -201,6 +201,7 @@ export const Control_color = function({
this.label.classList.add('disabled');
this.color.disabled = true;
this.text.disabled = true;
this.random.disable();
this.reset.disable();
if (extraButtons.length > 0) {
@ -214,6 +215,7 @@ export const Control_color = function({
this.label.classList.remove('disabled');
this.color.disabled = false;
this.text.disabled = false;
this.random.enable();
this.reset.enable();
if (extraButtons.length > 0) {