-
Notifications
You must be signed in to change notification settings - Fork 0
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
Using back/forward buttons on search results page does not update the text in the search textfield #121
Comments
This issue is caused by the search bar in the search screen being uncontrolled. Its uncontrolled because the amount of checkboxes slows the page down considerably. The filters can't be redrawn on textbox state change without causing this. Therefore will attempt to change to controlled with the While testing for this more bugs were found on the home page:
|
Debouncer solution did not work. The underlying issues are different.In the investigations page its a lag when displaying the results. In the search page its a lag when updating the state value of the search box. Used an alternative solution that sets the uncontrolled value of the input box using basic javascript and ids. |
Another bug: |
-Added fix to update search box when navigating from back or forward in history. -Added fix for invalid investigation lids causing crash. Example search for "arecibo"
-Added fix to keep the value of the search text when returning from the back button and then selecting a new checkbox.
-Fixed the message that shows on the search page when unrelated filters are selected from the home page.
-Fixed the label showing as "0 selected" instead of "all" when the filter chip X button is clicked. -The "all" checkbox is now shown as checked when all chips are deselected.
-The all value is removed from single select filters since it should not be able to be selected. It is already acting as if all is selected when nothing is selected.
💡 Description
There is an issue on the search page when using the back/forward browser buttons.
How to reproduce issue:
If you start a search on the homepage using the search header for say "mars":
Then when you hit enter you arrive on the search results page:
Do another search with the term "jupiter" in the text field in the body of the page:
Then you see the "jupiter" results:
Then click the back button, you'll see the textfield on the search page doesn't update, but the results show the "mars" results:
⚔️ Parent Epic / Related Tickets
No response
The text was updated successfully, but these errors were encountered: