Subnm Debounce


When searching in a tm1-ui-subnm I suggest you add some kind of debounce or token tracking to a user’s input so that the dropdown does not refresh on every key press or search. For example see code below. The search function would be fired on every keypress in the input box of the subnm but the dropdown will only refresh when the latest token is equal to the cached token within the scope of the search meaning only the latest search is committed to the UI. This will prevent a lot of jerking and mis-clicks.

var asynctoken = 0;
var Search = function(){
var token = asynctoken;
if(token === asynctoken){
/// refresh subnm