1
0
mirror of synced 2025-03-10 22:56:12 +03:00

better handling of empty string in select.val(). issue #34

This commit is contained in:
Igor Vaynberg 2012-04-16 22:00:14 -07:00
parent c87e5706e7
commit a542280595

View File

@ -1018,7 +1018,7 @@
this.updateSelection(data);
} else {
// val is an object
this.opts.element.val((val === null) ? "" : val.id);
this.opts.element.val((val === null || val === "") ? "" : val.id);
this.updateSelection(val);
}
this.setPlaceholder();