-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
STSMACOM-872: Reset qindex
once the search field is empty.
#1537
Conversation
f62cf7f
to
797f2aa
Compare
797f2aa
to
dd431eb
Compare
Quality Gate passedIssues Measures |
@@ -645,7 +645,7 @@ class SearchAndSort extends React.Component { | |||
} = this.props; | |||
this.log('action', 'cleared search query'); | |||
this.setState({ locallyChangedSearchTerm: '' }); | |||
this.transitionToParams({ query: '', ...extraParamsToReset }); | |||
this.transitionToParams({ query: '', qindex: '', ...extraParamsToReset }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @Dmytro-Melnyshyn
Are you sure that this change is needed across all Folio apps that leverage SearchAndSort
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @Terala-Priyanka, this is a bug, it should be fixed everywhere.
(cherry picked from commit 96af01a)
Purpose
Avoid resetting the selected search option when the text in the search box becomes empty.
Issues
STSMACOM-872
Screencast
2024-11-04_16h28_15.mp4