Usability enhancement: Autocomplete: do NOT clear the typed text when the value does not match one of the possible values, but clear the actual underlying value so that the input field gets marked as "invalid" if it is mandatory.

SVN:trunk[3737]
This commit is contained in:
Denis Flaven
2015-09-09 09:38:17 +00:00
parent 8b45928d11
commit 8fec8b7f80

View File

@@ -321,7 +321,7 @@ $.Autocompleter = function(input, options) {
$input.val( words.join(options.multipleSeparator) + (words.length ? options.multipleSeparator : "") );
}
else {
$input.val( "" );
//$input.val( "" );
$input.trigger("result", null);
}
}