We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a5ee9b5 commit ff9a434Copy full SHA for ff9a434
1 file changed
src/widgets/peopleSearch.ts
@@ -295,7 +295,7 @@ export const createPeopleSearch = function (
295
visibleCount += 1
296
}
297
298
- sortVisibleRows()
+ scheduleSortVisibleRows()
299
ensureActiveRowIsVisible()
300
return visibleCount
301
@@ -617,8 +617,18 @@ export const createPeopleSearch = function (
617
: 'No contacts match that name.')
618
619
620
+ let inputSearchQueued = false
621
const onInputHandler = function () {
- void runSearch(searchInput.value)
622
+ if (inputSearchQueued) {
623
+ return
624
+ }
625
+ inputSearchQueued = true
626
+
627
+ const flushInputSearch = function () {
628
+ inputSearchQueued = false
629
+ void runSearch(searchInput.value)
630
631
+ setTimeout(flushInputSearch, 0)
632
633
634
const onFocusHandler = function () {
0 commit comments