Permalink
Browse files

Did suggested changes

1 parent b6eb485 commit 3a3e82b9f4325bdc32ce0f69d88e6bb461ac0dce @corientdev corientdev committed Feb 20, 2017
Showing with 2 additions and 3 deletions.
  1. +2 −3 jquery.dropdown.js
View
@@ -264,8 +264,8 @@
// Close opened dropdowns
$(".dropdownjs > ul > li").attr("tabindex", -1);
- if (e.target.getAttribute('disabled')) {
- return;
+ if ($(e.target).hasClass('disabled')) {
+ return;
}
$input.removeClass("focus");
});
@@ -392,7 +392,6 @@
}
if ($this.prop("disabled")) {
- $option.attr("disabled", true);
$option.addClass("disabled");
}

0 comments on commit 3a3e82b

Please sign in to comment.