Permalink
Browse files

Allow setting $select.val('').change()

Fixes the issue where user is not able to set the dropdown value to blank programatically
  • Loading branch information...
1 parent 2555da7 commit 7ab6c9ca7ac60c5937d5f18278866c28ebd9cafd Hasan Kumar committed on GitHub Jun 22, 2016
Showing with 0 additions and 1 deletion.
  1. +0 −1 jquery.dropdown.js
View
@@ -170,7 +170,6 @@
// Update dropdown when using val, need to use .val("value").trigger("change");
$select.on("change", function(e) {
var $this = $(e.target);
- if (!$this.val().length) return;
if (!multi) {
var $selected;

0 comments on commit 7ab6c9c

Please sign in to comment.