mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-08-03 04:52:12 +00:00
fix: Initialize isEmoji on component initialization for icon-input component
This commit is contained in:
parent
a6b876c897
commit
b3d4f12ee4
1 changed files with 4 additions and 0 deletions
|
|
@ -40,6 +40,10 @@ export class IconInputComponent extends FieldType<FormlyFieldConfig> {
|
|||
return this.to.type || 'text';
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
this.isEmoji.set(containsEmoji(this.formControl.value))
|
||||
}
|
||||
|
||||
trackByIndex(i: number, p: any): number {
|
||||
return i;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue