We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8653419 commit ce94cd4Copy full SHA for ce94cd4
terminus-ui/selection-list/src/selection-list.component.ts
@@ -653,7 +653,7 @@ export class TsSelectionListComponent implements
653
const controlValue = this.ngControl.value;
654
// If the input value doesn't match the selection, then the user must have edited the input value
655
// istanbul ignore else
656
- if (inputValue !== ((controlValue && controlValue.length > 0) ? this.displayFormatter(controlValue[0]) : '')) {
+ if (controlValue && inputValue !== ((controlValue && controlValue.length > 0) ? this.displayFormatter(controlValue[0]) : '')) {
657
this.ngControl.value.length = 0;
658
}
659
0 commit comments