1
0
mirror of synced 2025-02-04 14:19:23 +03:00

always set the val on element so initSelection has access to it. fixes #337

This commit is contained in:
Igor Vaynberg 2012-08-16 00:09:00 -07:00
parent 1da4855191
commit 8bab0b6f70

View File

@ -1691,6 +1691,7 @@
this.clear(); this.clear();
return; return;
} }
this.opts.element.val(val);
this.opts.initSelection(this.opts.element, function(data){ this.opts.initSelection(this.opts.element, function(data){
self.opts.element.val(!data ? "" : self.id(data)); self.opts.element.val(!data ? "" : self.id(data));
self.updateSelection(data); self.updateSelection(data);