Skip to content
This repository has been archived by the owner on Aug 21, 2023. It is now read-only.

Commit

Permalink
fixup autocomplete hack
Browse files Browse the repository at this point in the history
  • Loading branch information
maurizi committed Mar 1, 2019
1 parent 88abb5e commit 1ae1c0a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/lab/components/city-dropdown.component.ts
Original file line number Diff line number Diff line change
@@ -98,10 +98,10 @@ export class CityDropdownComponent implements OnInit, ControlValueAccessor, Vali
// Chrome ignores 'autocomplete="off"' but will turn off autocomplete for
// invalid options. Google Places sets 'autocomplete="off"' regardless of
// what was set on the <input> before, so we need to override that in JS
this.el.nativeElement.autocomplete = 'forced-false';
this.el.nativeElement.removeEventListener('focus', forceAutocompleteOff);
this.input.nativeElement.autocomplete = 'forced-false';
this.input.nativeElement.removeEventListener('focus', forceAutocompleteOff);
};
this.el.nativeElement.addEventListener('focus', forceAutocompleteOff);
this.input.nativeElement.addEventListener('focus', forceAutocompleteOff);
}

private onPlaceChanged() {

0 comments on commit 1ae1c0a

Please sign in to comment.