Fix idfield
parent
f78f0e6877
commit
1331852c4e
|
@ -115,6 +115,7 @@ var SimpleAutocomplete = function(input, dataLoader, params)
|
|||
this.skipHideCounter = 0;
|
||||
this.selectedIndex = -1;
|
||||
this.disabled = false;
|
||||
this.curValue = null;
|
||||
|
||||
// *** Call initialise ***
|
||||
this.init();
|
||||
|
@ -465,7 +466,7 @@ SimpleAutocomplete.prototype.onChange = function(force)
|
|||
this.more = 0;
|
||||
if (v != this.curValue || force)
|
||||
{
|
||||
if (this.idField)
|
||||
if (this.curValue !== null && this.idField)
|
||||
this.idField.value = '';
|
||||
this.curValue = v;
|
||||
if (!this.delay || force)
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue