[Library | Trunk]: Input: Remove selection range causing focus issue on Safari

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@61224 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
k.triantafyllou 2021-06-15 13:33:02 +00:00
parent 76403fbaba
commit 1a38cf4843
1 changed files with 0 additions and 3 deletions

View File

@ -221,9 +221,6 @@ export class InputComponent implements OnInit, OnDestroy, OnChanges {
@HostListener('document:click', ['$event'])
clickOut(event) {
this.focused = !!this.elementRef.nativeElement.contains(event.target);
if(!this.focused && this.input) {
this.input.nativeElement.setSelectionRange(0,0);
}
this.focusEmitter.emit(this.focused);
}