Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:green-traveller/web into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
bucherfa committed Feb 7, 2021
2 parents af78b48 + d74dde6 commit 776fd84
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@
"styles": [
"src/styles.scss"
],
"scripts": []
"scripts": [],
"allowedCommonJsDependencies": [
"chart.js"
]
},
"configurations": {
"production": {
Expand Down
2 changes: 1 addition & 1 deletion src/app/views/search-route/search-route.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export class SearchRouteComponent implements OnInit, AfterViewInit {
// https://developers.google.com/maps/documentation/javascript/place-data-fields?hl=en_US
autocompleteOrigin.setFields(['place_id', 'name']);
// When the user selects an address from the drop-down
google.maps.event.addListenerOnce(autocompleteOrigin, 'place_changed', () => {
google.maps.event.addListener(autocompleteOrigin, 'place_changed', () => {
this.data.from = autocompleteOrigin.getPlace();
this.fromInputValid = true;
this.fromInput.nativeElement.setCustomValidity('');
Expand Down

0 comments on commit 776fd84

Please sign in to comment.