Browse files

Fix placeholder missing on tab out on input tags

Tabbing out of input tags with multiple set as true and no value
selected will result in the default placeholder not being shown.
This patch fixes the issue by calling clearSearch() on blur of
MultiSelect2 and preventing the bubbling of the blur event to the
abstract class.

Test case with version 3.2:
  • Loading branch information...
1 parent 222fa7e commit 5cf5deb2676e66fc5fc34dfc0b4f3a39ff39468d @pmirshad pmirshad committed Sep 4, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 select2.js
@@ -1867,6 +1867,9 @@"blur", this.bind(function() {
+ this.clearSearch();
+ e.stopImmediatePropagation();
this.container.delegate(selector, "mousedown", this.bind(function (e) {

0 comments on commit 5cf5deb

Please sign in to comment.