gwtchosen icon indicating copy to clipboard operation
gwtchosen copied to clipboard

server-side filtering docs

Open komasoftware opened this issue 9 years ago • 0 comments

In the documentation for server side filtering, this line of code does not make sense to me (and removing it makes the code work) :

 if (isShowing && initialized) {
            return; // do nothing, keep the last results
}
initialized = true;

This will only display the initial query and won't react to typing (as does the demo !)

In my implementation, I simply have :

if (!isShowing) {
 return;
}

so we won't hit the server unnecessary.

komasoftware avatar May 25 '15 21:05 komasoftware