Conversation
|
Want to review this pull request? Take a look at this documentation for a step by step guide! From your project repository, check out a new branch and test the changes. |
|
Availability: Tues 9/15 2pm-6pm, Thurs 9/17 & Fri 9/18 1pm-6pm |
There was a problem hiding this comment.
Hi @ldaws003! Sorry for the delay this past week, I just reviewed your PR.
- Action items and CodeQL alerts checked off
- PR is done in correct branch & issue is linked
- I tested search bar behavior on mobile views both before and after the changes were made to recreate the original issue and test your fixes. Everything functions as expected on mobile after a search is made:
- The scroll position no longer resets
- The filter toolbar persists
- The correct search results are displayed (I get the same search results before and after the changes were made!)
- Reasoning on changes made and why is included in the PR -- thanks for the detailed description! After taking a close look at your code, everything LGTM.
All in all, great work!
castillios
left a comment
There was a problem hiding this comment.
Actually I noticed something after submitted my review, sorry!
I was primarily pressing Enter to test search results, however after clicking the magnifying glass to enter a query, it would render inconsistent results (on both desktop and mobile) and consider the search query empty:
- Clicking magnifying glass on the original site:
https://www.hackforla.org/?Search=311 - Clicking magnifying glass on the local deployment with changes:
http://localhost:4000/?Search=
It might be because e.currentTarget.value listens to .search-glass when it's clicked. And because it has no value attribute, search results return undefined. I believe one solution would be to use the closest() method to always target the search-bars, but this is just an idea since there are multiple ways to approach this!
Fixes #8466
What changes did you make?
Why did you make the changes (we will use this info to test)?
CodeQL Alerts
After the PR has been submitted and the resulting GitHub actions/checks have been completed, developers should check the PR for CodeQL alert annotations.
Check the PR's comments. If present on your PR, the CodeQL alert looks similar as shown
Please let us know that you have checked for CodeQL alerts. Please do not dismiss alerts.
Instructions for resolving CodeQL alerts
If CodeQL alert/annotations appear, refer to How to Resolve CodeQL alerts.
In general, CodeQL alerts should be resolved prior to PR reviews and merging
Screenshots of Proposed Changes To The Website (if any, please do not include screenshots of code changes)