From de0d128a139ea5528f4c41bbf6e720939ea02c44 Mon Sep 17 00:00:00 2001 From: Avijit Das Date: Tue, 21 May 2024 21:03:16 +0530 Subject: [PATCH] UXPLATFORM-10430 fix search field value clears out issue --- packages/terra-form-select/CHANGELOG.md | 4 +++- packages/terra-form-select/src/search/Frame.jsx | 3 +-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/terra-form-select/CHANGELOG.md b/packages/terra-form-select/CHANGELOG.md index 59de6686d7e..400df7d4914 100644 --- a/packages/terra-form-select/CHANGELOG.md +++ b/packages/terra-form-select/CHANGELOG.md @@ -2,12 +2,14 @@ ## Unreleased +* Fixed + * Search field value now persists when navigating to another component. + ## 6.62.1 - (May 13, 2024) * Fixed * Fixed a "prop not recognized" console error. - ## 6.62.0 - (May 8, 2024) * Added diff --git a/packages/terra-form-select/src/search/Frame.jsx b/packages/terra-form-select/src/search/Frame.jsx index 3de7fb13ea9..cbd67958d23 100644 --- a/packages/terra-form-select/src/search/Frame.jsx +++ b/packages/terra-form-select/src/search/Frame.jsx @@ -233,8 +233,7 @@ class Frame extends React.Component { if (this.state.hasSearchChanged) { this.setState({ - searchValue: this.props.display, - hasSearchChanged: false, + hasSearchChanged: true, }); }