fix: Initialize isEmoji on component initialization for icon-input component

This commit is contained in:
Abrar74774 2025-10-22 23:27:36 +03:00
parent a6b876c897
commit b3d4f12ee4

View file

@ -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;
}