【发布时间】:2022-12-16 02:21:17
【问题描述】:
当在颜色选择器输入中输入有效的十六进制代码时,该字段会添加额外的字符并自动完成。
“ngx-color-picker”版本使用 11.0.0。
<input
autocomplete="off"
name="primaryColor"
style.background="#ffffff"
cpDisableInput="true"
[value]="primaryColor"
[cpAlphaChannel]="'disabled'"
[cpFallbackColor]="'#0d6efd'"
[cpOutputFormat]="'hex'"
[cpIgnoredElements]="[ignoredButton]"
[(colorPicker)]="primaryColor"
[(cpToggle)]="cpToggle"
(colorPickerChange)="updatePrimaryColor($event)"
(keyup)="validateColor($event)"
(change)="validateColor($event)"
/>
【问题讨论】:
标签: angular