Issue with autocomplete validation

Tags: #<Tag:0x00007efc60b29450>

I think there may be a problem with the autocomplete validation. I have an autocomplete field with allowInvalid=false. If I enter the cell, clear it, press enter, and then press escape, the result is that the cell shows a valid value, but is flagged as invalid. I think this is happening because:

  1. On enter, the validator is called and reports an invalid value
  2. The allowInvalid=false flag then causes the cell to be set back to the last valid value. The validator is not called again after this.
  3. Pressing escape hides the editor, and shows the rendered value - which is a valid value, because of step #2, but is invalid because of step #1.

This is reproducible in the standard autocomplete demo with allowInvalid=false: here.

Hi @pernice3 I think it has the same origin at this bug https://github.com/handsontable/handsontable/issues/2477

Ok, thanks