From f8a7490898002d7f96e8d49fc601fb731edc8372 Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Thu, 19 Jan 2023 03:55:06 -0500 Subject: [PATCH] turn off searching --- .../src/v2/view/tts/tts_model_list/explore/CategoryOptions.tsx | 1 + .../view/tts/tts_model_list/explore/ScopedVoiceModelOptions.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/fakeyou.com/src/v2/view/tts/tts_model_list/explore/CategoryOptions.tsx b/packages/fakeyou.com/src/v2/view/tts/tts_model_list/explore/CategoryOptions.tsx index 0660b92a45..6e111ede55 100644 --- a/packages/fakeyou.com/src/v2/view/tts/tts_model_list/explore/CategoryOptions.tsx +++ b/packages/fakeyou.com/src/v2/view/tts/tts_model_list/explore/CategoryOptions.tsx @@ -232,6 +232,7 @@ function buildDropdowns( classNames: SearchFieldClass, className:"w-100", autoFocus: false, // On mobile, we don't want the onscreen keyboard to take up half the UI. + isSearchable: false, // On mobile, we don't want the onscreen keyboard to take up half the UI. onChange: (option: any) => handleChangeCategory(i, option?.value), }; diff --git a/packages/fakeyou.com/src/v2/view/tts/tts_model_list/explore/ScopedVoiceModelOptions.tsx b/packages/fakeyou.com/src/v2/view/tts/tts_model_list/explore/ScopedVoiceModelOptions.tsx index c2b6ac2b74..ab83582095 100644 --- a/packages/fakeyou.com/src/v2/view/tts/tts_model_list/explore/ScopedVoiceModelOptions.tsx +++ b/packages/fakeyou.com/src/v2/view/tts/tts_model_list/explore/ScopedVoiceModelOptions.tsx @@ -125,6 +125,7 @@ export function ScopedVoiceModelOptions(props: Props) { onChange={handleChange} // On mobile, we don't want the onscreen keyboard to take up half the UI. autoFocus={false} + isSearchable={false} // NB: The following settings improve upon performance. // See: https://github.com/JedWatson/react-select/issues/3128 filterOption={createFilter({ignoreAccents: false})}