Skip to content

Commit

Permalink
Encode autocomplete val.
Browse files Browse the repository at this point in the history
  • Loading branch information
drwlrsn committed Jun 21, 2017
1 parent ca0287e commit 64e757e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
15 changes: 13 additions & 2 deletions dist/vue2-autocomplete.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion src/js/components/vue-autocomplete.vue
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,9 @@
})
}
ajax.open('GET', `${this.url}?${this.param}=${val}${params}`, true);
const encodedVal = encodeURIComponent(val);
ajax.open('GET', `${this.url}?${this.param}=${encodedVal}${params}`, true);
ajax.send();
ajax.addEventListener('progress', function (data) {
Expand Down

0 comments on commit 64e757e

Please sign in to comment.