fixed color scheme editing - fixes #5742

This commit is contained in:
Eugene Pankov 2022-04-15 11:23:55 +02:00
parent 14cf0a574e
commit 4fe4ae8b9b
No known key found for this signature in database
GPG key ID: 5896FCBBDD1CF4F4
2 changed files with 1 additions and 7 deletions

View file

@ -2,6 +2,6 @@ div(
[style.background]='model',
ngx-colors-trigger,
[(ngModel)]='model',
(ngModelChange)='onChange($event)',
(ngModelChange)='modelChange.emit($event)',
[ngbTooltip]='hint'
) {{ title }}

View file

@ -11,10 +11,4 @@ export class ColorPickerComponent {
@Input() title: string
@Input() hint: string
@Output() modelChange = new EventEmitter<string>()
onChange (value: string): void {
if (value !== this.model) {
this.modelChange.emit(value)
}
}
}