From 953e7295b81b76429820c846d46110506bc23c16 Mon Sep 17 00:00:00 2001 From: Tomasz Misiukiewicz Date: Fri, 15 Dec 2023 09:46:43 +0100 Subject: [PATCH] remove unnecessary value prop from money request --- src/components/OptionsSelector/BaseOptionsSelector.js | 2 +- .../MoneyRequestParticipantsSelector.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/OptionsSelector/BaseOptionsSelector.js b/src/components/OptionsSelector/BaseOptionsSelector.js index 4b101df45380..79482c11d6b0 100755 --- a/src/components/OptionsSelector/BaseOptionsSelector.js +++ b/src/components/OptionsSelector/BaseOptionsSelector.js @@ -163,7 +163,7 @@ class BaseOptionsSelector extends Component { }, () => { // If we just toggled an option on a multi-selection page or cleared the search input, scroll to top - if (this.props.selectedOptions.length !== prevProps.selectedOptions.length || (!!prevProps.value && !this.state.value)) { + if (this.props.selectedOptions.length !== prevProps.selectedOptions.length || (!!prevState.value && !this.state.value)) { this.scrollToIndex(0); return; } diff --git a/src/pages/iou/steps/MoneyRequstParticipantsPage/MoneyRequestParticipantsSelector.js b/src/pages/iou/steps/MoneyRequstParticipantsPage/MoneyRequestParticipantsSelector.js index 1fd2e4eb8d69..a0841c1db76c 100755 --- a/src/pages/iou/steps/MoneyRequstParticipantsPage/MoneyRequestParticipantsSelector.js +++ b/src/pages/iou/steps/MoneyRequstParticipantsPage/MoneyRequestParticipantsSelector.js @@ -320,7 +320,6 @@ function MoneyRequestParticipantsSelector({ onAddToSelection={addParticipantToSelection} sections={sections} selectedOptions={participants} - value={searchTerm} onSelectRow={addSingleParticipant} onChangeText={setSearchTermAndSearchInServer} ref={forwardedRef}