angular-material-components
angular-material-components copied to clipboard
ColorPicker: TypeError: c.toHexString
Whenever I try to open the color picker I get the following error:
TypeError: c.toHexString is not a function at set color [as color] (angular-material-components-color-picker.mjs:496:36)
<input matInput [ngxMatColorPicker]="picker" formControlName="color">
<ngx-mat-color-toggle matSuffix [for]="picker"></ngx-mat-color-toggle>
<ngx-mat-color-picker #picker ></ngx-mat-color-picker>
Version: 9.0.0 with Angular 15
Apparently it supports only Color typed value.
@author it would be nice if we could input a hex string directly as default value ?
iconBgColor: this.fb.control(new Color(255, 255, 255)), // default #FFFFFF (white)
will error if i use .hex or write "#fffffff"
@h2qutc Any updates?