fix bug of bootstrap autocomplete; duplicate event/trigger on recreated element
This commit is contained in:
+3
-1
@@ -4,7 +4,7 @@
|
||||
Desc. : JS - Fonia Custom Class v3
|
||||
Created By : Siau Pheng ([email protected]).
|
||||
Created Date : June 19th, 2009.
|
||||
Last Modified : January 2nd, 2025.
|
||||
Last Modified : June 6th, 2025.
|
||||
|
||||
(c) 2009 - 2025, 3FONIA Software; WWW.3FONIA.COM.
|
||||
|
||||
@@ -585,6 +585,8 @@ var FoniaJS = {
|
||||
if ('function' === typeof func_key) objComp.keyFunc = func_key;
|
||||
if ('function' === typeof func_comp) objComp.selectFunc = func_comp;
|
||||
}
|
||||
$(elm).nextAll('div.bootstrap-autocomplete').remove();
|
||||
$(elm).off();
|
||||
new AutoComplete(elm, objComp);
|
||||
},
|
||||
getAppID: function() {
|
||||
|
||||
Reference in New Issue
Block a user