Commit 26e4348e authored by David Stutz's avatar David Stutz

Merge pull request #119 from doogi/master

Preventing generated inputs from firing change input.
parents d0f43f45 2381debd
# Project files.
*.project
.idea/
\ No newline at end of file
......@@ -120,7 +120,8 @@
enableCaseInsensitiveFiltering : false,
filterPlaceholder : 'Search',
// possible options: 'text', 'value', 'both'
filterBehavior : 'text'
filterBehavior : 'text',
preventInputChangeEvent: false
},
constructor : Multiselect,
......@@ -270,6 +271,10 @@
this.options.onChange($option, checked);
this.$select.change();
if(this.options.preventInputChangeEvent) {
return false;
}
}, this));
$('.multiselect-container li a', this.$container).on('touchstart click', function(event) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment