Skip to content

Commit

Permalink
prevent using jQuery val()
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiodlopes committed Jul 10, 2017
1 parent 05dbef2 commit c21f036
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions jquery.flexdatalist.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Autocomplete input fields, with support for datalists.
*
* Version:
* 2.1.0.2
* 2.1.0.3
*
* Depends:
* jquery.js > 1.8.3
Expand Down Expand Up @@ -779,7 +779,7 @@ jQuery.fn.flexdatalist = function (_option, _value) {
$this.trigger('change:flexdatalist', [null, options]).trigger('change');
}
if (alias) {
$alias.val('', true);
$alias[0].value = '';
}
_values = [];
return this;
Expand Down
Loading

0 comments on commit c21f036

Please sign in to comment.