Alberplz / angular2-color-picker

Angular 2 Color Picker Directive, no dependences required.
MIT License
185 stars 82 forks source link

Cancel button works in Firefox but not in Google Chrome #128

Closed pedrosantos867 closed 2 years ago

pedrosantos867 commented 2 years ago

I'm using the code bellow in Firefox and I'm able to change to the old value when the cancel button is clicked but in Chrome the same thing doesn't happen.

<input [disabled]="disabled" [placeholder]="disabled ? '' : placeholder"
      [(ngModel)]="value" [(colorPicker)]="value" cpPosition="bottom" cpAlphaChannel="disabled" cpOutputFormat="hex"
      cpOKButton="true" cpOKButtonText="Submit"
      cpCancelButton="true" cpCancelButtonText="Cancel" 
      [ngClass]="{invalid: (invalid | async)}" #input [ngStyle]="{'border-left-color': value}">

Ubuntu 18.04.6 LTS Chrome: Version 96.0.4664.110 (Official Build) (64-bit) Firefox: v95.0.1 (64-bit)