Fix idfield

master
Vitaliy Filippov 8 years ago
parent f78f0e6877
commit 1331852c4e
  1. 3
      hinter.js
  2. 2
      hinter.min.js

@ -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)

2
hinter.min.js vendored

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save