Skip to content

Commit

Permalink
fix(select-with-autocomplete): fix first render with disabled autocom…
Browse files Browse the repository at this point in the history
…plete (#3104)
  • Loading branch information
sashaqred authored Sep 8, 2022
1 parent 6f42f38 commit efcd690
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -722,8 +722,10 @@ export class NbSelectWithAutocompleteComponent
}

protected resetAutocompleteInput() {
this.optionsAutocompleteInput.nativeElement.value = this.selectionView;
this.optionsAutocompleteInputChange.emit('');
if (this.optionsAutocompleteInput?.nativeElement) {
this.optionsAutocompleteInput.nativeElement.value = this.selectionView;
this.optionsAutocompleteInputChange.emit('');
}
}

protected createPositionStrategy(): NbAdjustableConnectedPositionStrategy {
Expand Down

0 comments on commit efcd690

Please sign in to comment.