Skip to content

Issue with opening modal when selecting checkbox for bulk actions in clickable rows #1947

Answered by lrljoe
slossetti asked this question in Q&A
Discussion options

You must be logged in to vote

As you're using AlpineJS, any click on the "tr" element will result in wire:click being fired.

If you add this to your configure(), then it should ensure that the checkbox doesn't interact with your "tr" wide on-click

    public function configure(): void
    {

      $this->setBulkActionsTdCheckboxAttributes([
          'x-on:click.stop' => '',
          'default' => true
    ]);

Replies: 1 comment 3 replies

Comment options

lrljoe
Sep 18, 2024
Collaborator Sponsor

You must be logged in to vote
3 replies
@slossetti
Comment options

@lrljoe
Comment options

lrljoe Sep 20, 2024
Collaborator Sponsor

@slossetti
Comment options

Answer selected by slossetti
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants