diff --git a/src/components/CategoryPicker/index.js b/src/components/CategoryPicker/index.js index d170def12276..a957e31a9de4 100644 --- a/src/components/CategoryPicker/index.js +++ b/src/components/CategoryPicker/index.js @@ -62,7 +62,6 @@ function CategoryPicker({selectedCategory, policyCategories, policyRecentlyUsedC sectionHeaderStyle={styles.mt5} sections={sections} selectedOptions={selectedOptions} - value={searchValue} // Focus the first option when searching focusedIndex={0} // Focus the selected option on first load diff --git a/src/components/TagPicker/index.js b/src/components/TagPicker/index.js index cb3d9bf260e6..e258472eae93 100644 --- a/src/components/TagPicker/index.js +++ b/src/components/TagPicker/index.js @@ -70,7 +70,6 @@ function TagPicker({selectedTag, tag, policyTags, policyRecentlyUsedTags, should highlightSelectedOptions isRowMultilineSupported shouldShowTextInput={shouldShowTextInput} - value={searchValue} // Focus the first option when searching focusedIndex={0} // Focus the selected option on first load diff --git a/src/pages/NewChatPage.js b/src/pages/NewChatPage.js index 6f45c0b33f5a..d7abbab6e93f 100755 --- a/src/pages/NewChatPage.js +++ b/src/pages/NewChatPage.js @@ -244,7 +244,6 @@ function NewChatPage({betas, isGroupChat, personalDetails, reports, translate, i onAddToSelection={(option) => toggleOption(option)} sections={sections} selectedOptions={selectedOptions} - value={searchTerm} onSelectRow={(option) => createChat(option)} onChangeText={setSearchTermAndSearchInServer} headerMessage={headerMessage} diff --git a/src/pages/tasks/TaskAssigneeSelectorModal.js b/src/pages/tasks/TaskAssigneeSelectorModal.js index dbc7c262cd93..4d5292cd6066 100644 --- a/src/pages/tasks/TaskAssigneeSelectorModal.js +++ b/src/pages/tasks/TaskAssigneeSelectorModal.js @@ -4,7 +4,6 @@ import PropTypes from 'prop-types'; import React, {useCallback, useEffect, useMemo, useState} from 'react'; import {View} from 'react-native'; import {withOnyx} from 'react-native-onyx'; -import _ from 'underscore'; import FullPageNotFoundView from '@components/BlockingViews/FullPageNotFoundView'; import HeaderWithBackButton from '@components/HeaderWithBackButton'; import {usePersonalDetails} from '@components/OnyxProvider'; @@ -112,12 +111,8 @@ function TaskAssigneeSelectorModal(props) { }, [props, searchValue, allPersonalDetails, isLoading]); useEffect(() => { - const debouncedSearch = _.debounce(updateOptions, 200); - debouncedSearch(); - return () => { - debouncedSearch.cancel(); - }; - }, [updateOptions]); + updateOptions(); + }, [searchValue, updateOptions]); const onChangeText = (newSearchTerm = '') => { setSearchValue(newSearchTerm); @@ -221,7 +216,6 @@ function TaskAssigneeSelectorModal(props) {