Skip to content
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

Merged
merged 2 commits into from
Nov 7, 2024

Conversation

Dmytro-Melnyshyn
Copy link
Contributor

@Dmytro-Melnyshyn Dmytro-Melnyshyn commented Nov 4, 2024

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

Copy link

github-actions bot commented Nov 4, 2024

Bigtest Unit Test Results

  1 files  ±0    1 suites  ±0   15s ⏱️ -1s
506 tests +1  469 ✅ +1  37 💤 ±0  0 ❌ ±0 
508 runs  +1  471 ✅ +1  37 💤 ±0  0 ❌ ±0 

Results for commit 2a6e4d0. ± Comparison against base commit f139a31.

♻️ This comment has been updated with latest results.

Copy link

sonarqubecloud bot commented Nov 4, 2024

@BogdanDenis BogdanDenis requested a review from a team November 5, 2024 12:45
@@ -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 });
Copy link
Contributor

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?

Copy link
Contributor Author

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.

@Dmytro-Melnyshyn Dmytro-Melnyshyn merged commit 96af01a into master Nov 7, 2024
15 checks passed
@Dmytro-Melnyshyn Dmytro-Melnyshyn deleted the STSMACOM-872 branch November 7, 2024 15:17
zburke pushed a commit that referenced this pull request Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants