From 2685ad317c6c45d9d180bd2da7fa9066cc54226e Mon Sep 17 00:00:00 2001 From: nabbed Date: Mon, 21 Nov 2016 07:28:51 +1100 Subject: [PATCH] add input into parameters passed to onchooseEvent to make handling multiple field handling --- src/core.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core.js b/src/core.js index 4203dfa..430bb1d 100644 --- a/src/core.js +++ b/src/core.js @@ -286,7 +286,7 @@ var EasyAutocomplete = (function(scope) { selectElement(itemCounter); config.get("list").onClickEvent(); - config.get("list").onChooseEvent(); + config.get("list").onChooseEvent($field); }) .mouseover(function() { @@ -629,7 +629,7 @@ var EasyAutocomplete = (function(scope) { $field.val(config.get("getValue")(elementsList[selectedElement])); config.get("list").onKeyEnterEvent(); - config.get("list").onChooseEvent(); + config.get("list").onChooseEvent($field); selectedElement = -1; hideContainer();