diff --git a/.eslintrc.json b/.eslintrc.json index 1da9d9fc7..bb790113b 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -33,6 +33,7 @@ "@stencil/reserved-member-names": "error", "@stencil/single-export": "error", "@stencil/strict-boolean-conditions": "off", - "@stencil/strict-mutable": "off" + "@stencil/strict-mutable": "off", + "react/jsx-no-bind": "off" } } diff --git a/src/components/color-picker/color-picker.tsx b/src/components/color-picker/color-picker.tsx index f9594953f..b3e4235ea 100644 --- a/src/components/color-picker/color-picker.tsx +++ b/src/components/color-picker/color-picker.tsx @@ -181,6 +181,8 @@ export class ColorPicker { event.preventDefault(); this.alpha = 100; } + + this.syncInputValue(); } handleHueKeyDown(event: KeyboardEvent) { @@ -205,6 +207,8 @@ export class ColorPicker { event.preventDefault(); this.hue = 360; } + + this.syncInputValue(); } handleGridKeyDown(event: KeyboardEvent) { @@ -229,6 +233,8 @@ export class ColorPicker { event.preventDefault(); this.lightness = clamp(this.lightness - increment, 0, 100); } + + this.syncInputValue(); } handleUserChange(event: CustomEvent) { @@ -469,12 +475,11 @@ export class ColorPicker { {this.swatches && (