Skip to content

Commit

Permalink
add for this
Browse files Browse the repository at this point in the history
  • Loading branch information
armine-fliplet committed Aug 30, 2024
1 parent 32c2e9b commit 7b77ab4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/libs/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -911,11 +911,12 @@ Fliplet.FormBuilder = (function() {
};

component.methods._initAddressTypeahead = function() {
var $vm = this;
const countries = Fliplet.FormBuilderData.countries;

const addressTypeahead = Fliplet.UI.Typeahead('#restricted-countries', {
readonly: false,
value: this.countryRestrictions,
value: $vm.countryRestrictions,
options: countries,
freeInput: false,
maxItems: 5,
Expand All @@ -924,7 +925,7 @@ Fliplet.FormBuilder = (function() {
});

addressTypeahead.change(function(value) {
this.countryRestrictions = value;
$vm.countryRestrictions = value;
});
};

Expand Down

0 comments on commit 7b77ab4

Please sign in to comment.