mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-16 21:13:23 +01:00
Use timeout to get selected autocomplete value instead of just the entered text
This commit is contained in:
parent
d853cb7b0f
commit
6b5ed240ed
@ -2178,7 +2178,12 @@ var et2_nextmatch_header_bar = et2_DOMWidget.extend(et2_INextmatchHeader,
|
|||||||
{
|
{
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
self.getInstanceManager().autocomplete_fixer();
|
self.getInstanceManager().autocomplete_fixer();
|
||||||
self.nextmatch.applyFilters({search: self.search.getValue()});
|
// Use a timeout to make sure we get the autocomplete value,
|
||||||
|
// if one was chosen, instead of what was actually typed.
|
||||||
|
// Chrome doesn't need this, but FF does.
|
||||||
|
window.setTimeout(function() {
|
||||||
|
self.nextmatch.applyFilters({search: self.search.getValue()});
|
||||||
|
},0);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
// Firefox treats search differently. Add in the clear button.
|
// Firefox treats search differently. Add in the clear button.
|
||||||
|
Loading…
Reference in New Issue
Block a user