Skip to content

Commit

Permalink
Fix for IE8 and selecting options from the dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
u01jmg3 committed May 17, 2016
1 parent 6367ced commit d0e8bfc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "bootstrap-multiselect",
"name": "uofa-bootstrap-multiselect",
"description": "Twitter Bootstrap plugin to make selects user friendly.",
"homepage": "http://davidstutz.github.io/bootstrap-multiselect/",
"version": "0.9.13",
"version": "0.9.14",
"keywords": [
"js",
"css",
Expand Down
7 changes: 7 additions & 0 deletions dist/js/bootstrap-multiselect.js
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,13 @@

var $target = $(event.target);

if($('.ie8').length > 0){
event.preventDefault();
$target = $target.find("input");
$target.prop("checked", !$target.prop("checked"));
$target.click();
}

if (event.shiftKey && this.options.multiple) {
if($target.is("label")){ // Handles checkbox selection manually (see https://github.com/davidstutz/bootstrap-multiselect/issues/431)
event.preventDefault();
Expand Down

0 comments on commit d0e8bfc

Please sign in to comment.