mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
Et2VfsSelectDialog: Fix search waiting for too many characters
This commit is contained in:
parent
a427d3e462
commit
3b65a4a810
@ -769,9 +769,8 @@ export class Et2VfsSelectDialog extends Et2InputWidget(LitElement) implements Se
|
||||
return;
|
||||
}
|
||||
|
||||
// Start the search automatically if they have enough letters
|
||||
// -1 because we're in keyDown handler, and value is from _before_ this key was pressed
|
||||
if(this._searchNode.value.length - 1 > 0)
|
||||
// Start the search automatically if they have something typed
|
||||
if(this._searchNode.value.length > 0)
|
||||
{
|
||||
this._searchTimeout = window.setTimeout(() => {this.startSearch()}, Et2VfsSelectDialog.SEARCH_TIMEOUT);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user