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

Posts block - Load More/Pagination issue when duplicating Posts block #3189

Open
andeng1106 opened this issue May 22, 2024 · 1 comment
Open
Labels
[block] Posts bug Something isn't working

Comments

@andeng1106
Copy link

Describe the bug

To Reproduce
Steps to reproduce the behavior:
Scenario 1

  1. Add a Posts block
  2. Duplicate the Posts block
  3. In the original block, change Post Type to something else
  4. Add Load More button on both Posts block
  5. Save page and view frontend
  6. Try clicking the Load More of the original block
  7. See that it gets the query from the duplicated block's Post Type

Scenario 2

  1. Add a Posts block
  2. Duplicate the Posts block
  3. In the original block, change Post Type to something else
  4. Add Load More button on the original block (optional)
  5. Add a Pagination button for the duplicated block
  6. Save page and view frontend
  7. Try clicking any page on the Pagination button
  8. See that the original block data/query changes also

Expected behavior

  • Scenario 1:
    • The original block (the one that's duplicated) should not follow the duplicated posts block's query when clicking Load More
  • Scenario 2:
    • The original block (the one that's duplicated) should not be affected when changing page on the duplicated posts block

Screenshots
Scenario 1:

posts.block.scenario.1.mov

Scenario 2:

posts.block.scenario.2.mov
@andeng1106 andeng1106 added bug Something isn't working [block] Posts labels May 22, 2024
@andeng1106
Copy link
Author

QA Notes: To monitor for 3.13 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[block] Posts bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant