瀏覽代碼

Merge pull request #2481 from sbilstein/master

Fixes #2434 Prevents whitespace only tags from being created
Kevin Brown 11 年之前
父節點
當前提交
fdad112682
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      select2.js

+ 1 - 1
select2.js

@@ -2953,7 +2953,7 @@ the specific language governing permissions and limitations under the Apache Lic
         // multi
         onSelect: function (data, options) {
 
-            if (!this.triggerSelect(data)) { return; }
+            if (!this.triggerSelect(data) || data.text === "") { return; }
 
             this.addSelectedChoice(data);