livewire-powergrid icon indicating copy to clipboard operation
livewire-powergrid copied to clipboard

Bulk Action with UUID

Open luanfreitasdev opened this issue 1 year ago • 1 comments

Discussed in https://github.com/Power-Components/livewire-powergrid/discussions/1601

Originally posted by mapism June 23, 2024 Hi, I am trying to implement a simple bulk action, but my table has UUIDs. It seems like when clicking in the checkbox it only gets the first char of the id, so in a table like the one from the screenshot I only get "9" when console.log pgBulkActions.get() Is this a problem with uuid or am i doing something wrong?

image

Thanks in advance for your help!

pd: notice the counter is 0, because an even number of rows is selected, so is selecting and deselecting "9". edit: when click on "check all" checkbox it works great, even if i deselect from there it still show me the correct uuids, the problem is when i start checking rows individually.

luanfreitasdev avatar Jun 23 '24 13:06 luanfreitasdev

Edit2: Check all works only if no row is selected. It can select and deselect fine all rows. Selecting and deselecting rows individually after "check all" doesnt work at all.

fantismic avatar Jun 24 '24 03:06 fantismic