@tft/crispr-forms 13.0.7 → 13.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -583,7 +583,7 @@ class AutocompleteFieldComponent extends AbstractAutocompleteComponent {
583
583
  ngOnInit() {
584
584
  super.ngOnInit();
585
585
  this.clearFieldSubscription = this.autocompleteInputControl.valueChanges.subscribe((text) => {
586
- if (text.trim() === '') {
586
+ if (typeof text === 'string' && text?.trim() === '') {
587
587
  this.control.setValue(null);
588
588
  }
589
589
  });