Open villejj opened 12 years ago
It would be nice if the component would clear the input field when adding items with the javascript callback.
My current workaround is to "manually" clear the input after calling the "add" method.
var autoSuggest = $(autosuggestFieldId); options.start = function(callbacks){ addItem = callbacks.add; }; autoSuggest.autoSuggest(..., options); ... addItem(item); autoSuggest.val('');
Btw, using the callbacks for adding items might be something to be added to documentation, took a while to figure out how it works.
It would be nice if the component would clear the input field when adding items with the javascript callback.
My current workaround is to "manually" clear the input after calling the "add" method.
var autoSuggest = $(autosuggestFieldId); options.start = function(callbacks){ addItem = callbacks.add; }; autoSuggest.autoSuggest(..., options); ... addItem(item); autoSuggest.val('');
Btw, using the callbacks for adding items might be something to be added to documentation, took a while to figure out how it works.