Skip to content

[Demo] Fix ReviewList scrolls to top when editing a review#9958

Merged
slax57 merged 1 commit intomasterfrom
fix-demo-review-edit-scroll
Jun 27, 2024
Merged

[Demo] Fix ReviewList scrolls to top when editing a review#9958
slax57 merged 1 commit intomasterfrom
fix-demo-review-edit-scroll

Conversation

@djhi
Copy link
Contributor

@djhi djhi commented Jun 26, 2024

Problem

When clicking on a review to edit it in the demo, the page scrolls back to the top. This is because, scrolling to the top of the page when navigating is the default.

Solution

Don't use the default redirect and implement it specifically for this page.

How to test

  • run the demo
  • navigate to the review list
  • set its page size to 50
  • scroll down
  • click on a review

=> Observe the page does not scroll to the top anymore

@djhi djhi added the RFR Ready For Review label Jun 26, 2024
@slax57 slax57 added this to the 5.0.3 milestone Jun 27, 2024
@slax57 slax57 merged commit 39bab7e into master Jun 27, 2024
@slax57 slax57 deleted the fix-demo-review-edit-scroll branch June 27, 2024 11:39
@slax57 slax57 changed the title Fix ReviewList scrolls to top when editing a review [Demo] Fix ReviewList scrolls to top when editing a review Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

RFR Ready For Review

Development

Successfully merging this pull request may close these issues.

2 participants