Skip to content

Commit

Permalink
Added additional properties to default fields. Bump to 2.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mmikkel committed Sep 23, 2020
1 parent 670b8a4 commit 161b390
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).

## 2.3.1 - 2020-09-23

### Changed
- Added additional properties to default fields (`name`, `place_id`)

## 2.3.0 - 2020-08-29

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "vaersaagod/locate",
"description": "Harness the power of the Google Autocomplete API inside Craft. Adds an autocomplete search box to Craft entries.",
"type": "craft-plugin",
"version": "2.3.0",
"version": "2.3.1",
"keywords": [
"craft",
"cms",
Expand Down
2 changes: 1 addition & 1 deletion src/assetbundles/locatefield/dist/js/LocateField.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
var options = JSON.parse('{' + _this.options.optionsObject + '}') || {};

if (!options.fields || !options.fields.length) {
options.fields = ['geometry', 'address_components'];
options.fields = ['place_id', 'name', 'geometry', 'address_component', 'address_components'];
}

var autocomplete = new google.maps.places.Autocomplete(input, options);
Expand Down

0 comments on commit 161b390

Please sign in to comment.