We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b028314 commit c7afd8fCopy full SHA for c7afd8f
framework/core/js/src/forum/components/Search.tsx
@@ -59,6 +59,11 @@ export default class Search<T extends SearchAttrs = SearchAttrs> extends Compone
59
*/
60
protected static MIN_SEARCH_LEN = 3;
61
62
+ /**
63
+ * Time to wait (in milliseconds) after the user stops typing before triggering a search.
64
+ */
65
+ protected static SEARCH_DEBOUNCE_TIME_MS = 250;
66
+
67
/**
68
* The instance of `SearchState` for this component.
69
@@ -258,7 +263,7 @@ export default class Search<T extends SearchAttrs = SearchAttrs> extends Compone
258
263
259
264
state.cache(query);
260
265
m.redraw();
261
- }, 250);
266
+ }, (search.constructor as typeof Search).SEARCH_DEBOUNCE_TIME_MS);
262
267
})
268
269
.on('focus', function () {
0 commit comments