Skip to content

Commit

Permalink
Update autocomplete.js
Browse files Browse the repository at this point in the history
  • Loading branch information
websitevirtuoso authored Jan 24, 2021
1 parent 2cc6faa commit f519cdd
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const props = {
options: {
type: Object,
},
fields: {
fieldsProp: {
required: false,
type: Array,
default: null,
Expand Down Expand Up @@ -92,8 +92,8 @@ export default {

// IMPORTANT: To avoid paying for data that you don't need,
// be sure to use Autocomplete.setFields() to specify only the place data that you will use.
if (this.fields) {
this.$autocomplete.setFields(this.fields);
if (this.fieldsProp) {
this.$autocomplete.setFields(this.fieldsProp);
}

// Not using `bindEvents` because we also want
Expand Down

0 comments on commit f519cdd

Please sign in to comment.