Skip to content

Commit

Permalink
Merge pull request #1401 from GSA/tagmode-results
Browse files Browse the repository at this point in the history
fixed tag mode dropdown
  • Loading branch information
shayan-roshan authored Feb 1, 2024
2 parents 8e13a2d + 934a488 commit c37bbac
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ export class SDSAutocompleteSearchComponent implements ControlValueAccessor {
if (this.configuration.isFreeTextEnabled && this.inputValue.length > 0) {
const val = this.createFreeTextItem();
this.selectItem(val);
this.clearAndHideResults();
}
} else if (
KeyHelper.is(KEYS.SPACE, event) &&
Expand Down Expand Up @@ -354,7 +355,7 @@ export class SDSAutocompleteSearchComponent implements ControlValueAccessor {
this.addItemToModel(filterItem);
}

if (this.configuration.selectionMode === SelectionMode.MULTIPLE) {
if (this.configuration.selectionMode === SelectionMode.MULTIPLE && !this.configuration.isTagModeEnabled) {
this.showResults = true;
this.input.nativeElement.focus();
const flat = this.getFlatElements();
Expand Down

0 comments on commit c37bbac

Please sign in to comment.