#CheckboxColumn generating no-clickable checkboxes

12 messages · Page 1 of 1 (latest)

vast dew
#

When I use a CheckboxColumn to show a boolean attribute, nothing happens when i click on Checkbox.
When I use a ToggleColumn, the record is updated when i click.

Version: 4.1

hot nebulaBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

vagrant hamlet
prisma tartan
#

Any errors in DevTools?

vast dew
vast dew
# vagrant hamlet Can you provide some code?

ColumnGroup::make('Vacinas', [
                    ToggleColumn::make('vaccine_hpb1')
                        ->width('5%')
                        ->alignCenter()
                        ->label('HB 1ᵃ')
                        ->toggleable(isToggledHiddenByDefault: true),
                    CheckboxColumn::make('vaccine_hpb2')
                        ->width('5%')
                        ->alignCenter()
                        ->label('HB 2ᵃ')
                        ->toggleable(isToggledHiddenByDefault: true),

prisma tartan
#

Does anything change if you don't use a ColumnGroup?

vast dew
#

Nothing changes.

#

I’m using Advanced Tables, but i don’t know if it has anything to do with it

prisma tartan
#

Would be worth disabling it to check.

vast dew
#

Disabled, and checkboxes still without checking

vast dew
#

Removing .prevent from x-on:click.stop.prevent seems to solve the problem