diff --git a/CHANGELOG.md b/CHANGELOG.md index 605fb07..a31fefd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/composer.json b/composer.json index c3c78d2..3a5b657 100644 --- a/composer.json +++ b/composer.json @@ -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", diff --git a/src/assetbundles/locatefield/dist/js/LocateField.js b/src/assetbundles/locatefield/dist/js/LocateField.js index 5a5dc53..04409c4 100644 --- a/src/assetbundles/locatefield/dist/js/LocateField.js +++ b/src/assetbundles/locatefield/dist/js/LocateField.js @@ -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);