Skip to content

Commit

Permalink
Revert "fixed primefaces#7841 forceSelection not clearing invalid sin…
Browse files Browse the repository at this point in the history
…gle numbers/strings"

This reverts commit e80663b.
  • Loading branch information
yigitfindikli authored and JacobSiegle committed Oct 2, 2019
1 parent bf3b0fb commit 2b103fa
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/app/components/autocomplete/autocomplete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -635,18 +635,6 @@ export class AutoComplete implements AfterViewChecked,AfterContentInit,DoCheck,O
this.onModelChange(this.value);
}
}
else if (this.forceSelection && !this.suggestions) {
if (this.multiple) {
this.multiInputEL.nativeElement.value = '';
}
else {
this.value = null;
this.inputEL.nativeElement.value = '';
}

this.onClear.emit(event);
this.onModelChange(this.value);
}
}

onInputPaste(event: ClipboardEvent) {
Expand Down

0 comments on commit 2b103fa

Please sign in to comment.