From 47a5d0c7793fefb9e4b5ffc7de4b3f0eaff25c31 Mon Sep 17 00:00:00 2001 From: BaZzz01010101 Date: Sun, 14 May 2017 19:53:04 +0300 Subject: [PATCH] Add position and value arguments for *after* callback --- bootstrap-tagautocomplete.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap-tagautocomplete.js b/bootstrap-tagautocomplete.js index a7a4095..558557a 100644 --- a/bootstrap-tagautocomplete.js +++ b/bootstrap-tagautocomplete.js @@ -49,7 +49,7 @@ this.$element.text(text); this.$element.change(); - this.after(); + this.after(position - offset - this.length_of_query, val); setCaretPosition(this.$element[0], position);