fix: search flickering - #1965
Conversation
|
Thanks for the pull request, @vmnavarro94! This repository is currently maintained by Once you've gone through the following steps feel free to tag them in a comment and let them know that your changes are ready for engineering review. 🔘 Get product approvalIf you haven't already, check this list to see if your contribution needs to go through the product review process.
🔘 Provide contextTo help your reviewers and other members of the community understand the purpose and larger context of your changes, feel free to add as much of the following information to the PR description as you can:
🔘 Get a green buildIf one or more checks are failing, continue working on your changes until this is no longer the case and your build turns green. DetailsWhere can I find more information?If you'd like to get more details on all aspects of the review process for open source pull requests (OSPRs), check out the following resources: When can I expect my changes to be merged?Our goal is to get community contributions seen and reviewed as efficiently as possible. However, the amount of time that it takes to review and merge a PR can vary significantly based on factors such as:
💡 As a result it may take up to several weeks or months to complete a review and merge your PR. |
|
Hey, thanks for looking at this! Sorry that you weren't aware, but I believe this was already fixed with #1938 . Though if you're still able to reproduce it on master, please let us know. We were working off the issue #1902 so the PR / assignee were updated on that one. We also backported the fix to Teak: #1948 |
Yeah, I was able to reproduce it on master. |
|
Weird; I just tried with |
I think I had something cached, reset my local environment and now the issue is gone, I will close this PR. Thanks : D |
|
Thank you both, @bradenmacdonald @vmnavarro94. However, this (or something similar) is still happening on the teak sandbox: Screencast.from.15-05-25.09.57.27.webmCan you help me find which PR fixed it? Thank you! |
|
@mariajgrimaldi It's #1948 . Maybe the sandbox isn't updated with that fix yet? |
|
Now it's working! Thank you all for the help |
Description
This PR addresses an issue where typing into the course search modal causes the page to refresh and the modal to close unexpectedly. The root cause is the search context updating the URL with each keystroke, which is useful for some scenarios (e.g. sharing URLs), but not for modal-based searches like the course outline.
To resolve this, we modified the SearchProvider used by the course search modal to skip the URL update. This avoids the need to track modal state in the URL and prevents unnecessary page refreshes—resulting in a smoother user experience.
Fixes: openedx/wg-build-test-release#478
Useful information to include:
In scenarios where search is embedded in the page, updating the URL makes sense.
By skipping the URL sync in this case, we simplify the behavior and improve usability.
Before
439974951-913eee02-1ee3-454c-afc5-603d1ef585f4.mov
After
Screen.Recording.2025-05-14.at.12.56.27.p.m.mov
Testing instructions
Expected Results