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

Fix: Visual bug when using selectCurrentPageOnly in combination with grouping #12860

Conversation

dev-idkwhoami
Copy link
Contributor

Description

While confirming this another PR worked properly with groups. I noticed when selectCurrentPageOnly is used in combination with grouping it causes a visual bug.

The checkbox would display as checked if none or not all records of that group on the current page are selected.

The code change simply adds a livewire key to the group checkbox component so livewire knows to update it.

Visual changes

Before:
brave_EAz9SiDsWX

After:
brave_XXD7BXT1nW

Functional changes

  • Code style has been fixed by running the composer cs command.
  • Changes have been tested to not break existing functionality.
  • Documentation is up-to-date.

@danharrin danharrin added the bug Something isn't working label May 20, 2024
@danharrin danharrin added this to the v3 milestone May 20, 2024
@danharrin danharrin self-assigned this May 20, 2024
Copy link
Member

@danharrin danharrin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please refactor this to use a $page argument instead of a random string, like I did in your other PR?

And since we'll be calling $this->getTablePage() in two places, maybe save this value as $page at the top of the index.blade.php file alongside the other variables?

@danharrin
Copy link
Member

If you want to wait until the other PR is merged, then merge that in to here before you make the changes, that's also fine

@danharrin danharrin merged commit 1108fd6 into filamentphp:3.x May 20, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants