diff --git a/source/Ox.UI/js/Form/Ox.Input.js b/source/Ox.UI/js/Form/Ox.Input.js index ae6f7849..49bf297d 100644 --- a/source/Ox.UI/js/Form/Ox.Input.js +++ b/source/Ox.UI/js/Form/Ox.Input.js @@ -326,9 +326,11 @@ Ox.Input = function(options, self) { } function autocompleteFunction() { - var values = Ox.find(self.options.autocomplete, self.options.value); - return self.options.autocompleteReplace - ? values[0] : values[0].concat(values[1]); + return Ox.find( + self.options.autocomplete, + self.options.value, + self.options.autocompleteReplace + ); } function autocompleteCallback(values) {