Skip to content

Commit

Permalink
minor fix on toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiodlopes committed Aug 5, 2017
1 parent 212090b commit 046bf0a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 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.3.4
* 2.1.3.5
*
* Depends:
* jquery.js > 1.8.3
Expand Down Expand Up @@ -649,7 +649,7 @@ jQuery.fn.flexdatalist = function (_option, _value) {
args = [{value: data.value, text: data.text, action: action}, options];

$this.trigger('before:flexdatalist.toggle', args);

if (action === 'enable') {
var value = $li.data('value');
current.splice(index, 0, value);
Expand Down Expand Up @@ -714,7 +714,7 @@ jQuery.fn.flexdatalist = function (_option, _value) {
.append('<span class="fdl-remove">&times;</span>')
.data({
'text': txt,
'value': val
'value': _this.fvalue.toObj(val)
})
.insertBefore($inputContainer);
},
Expand Down
Loading

0 comments on commit 046bf0a

Please sign in to comment.