diff --git a/framework/core/js/src/forum/components/Search.tsx b/framework/core/js/src/forum/components/Search.tsx index 07fca3f455..5f55819c23 100644 --- a/framework/core/js/src/forum/components/Search.tsx +++ b/framework/core/js/src/forum/components/Search.tsx @@ -59,6 +59,11 @@ export default class Search extends Compone */ protected static MIN_SEARCH_LEN = 3; + /** + * Time to wait (in milliseconds) after the user stops typing before triggering a search. + */ + protected static SEARCH_DEBOUNCE_TIME_MS = 250; + /** * The instance of `SearchState` for this component. */ @@ -258,7 +263,7 @@ export default class Search extends Compone state.cache(query); m.redraw(); - }, 250); + }, (search.constructor as typeof Search).SEARCH_DEBOUNCE_TIME_MS); }) .on('focus', function () {