Skip to content

Commit

Permalink
Merge pull request #14398 from kkoripl/issue-14389-fix
Browse files Browse the repository at this point in the history
Fix #14389: ForceSelection does not force selection - formControl value is changed even without selection
  • Loading branch information
cetincakiroglu authored Dec 20, 2023
2 parents dacf94e + 3670cae commit 9c1becf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/autocomplete/autocomplete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1061,7 +1061,7 @@ export class AutoComplete implements AfterViewChecked, AfterContentInit, OnDestr

let query = event.target.value;

if (!this.multiple) {
if (!this.multiple && !this.forceSelection) {
this.updateModel(query);
}

Expand Down

0 comments on commit 9c1becf

Please sign in to comment.