CheckboxColumn generating no-clickable checkboxes

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
Solution:
Removing .prevent from x-on:click.stop.prevent seems to solve the problem
Jump to solution
8 Replies
Matthew
Matthew2mo ago
Can you provide some code?
Dennis Koch
Dennis Koch2mo ago
Any errors in DevTools?
akahalls
akahallsOP2mo ago
nothing on DevTools
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),
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),
Dennis Koch
Dennis Koch2mo ago
Does anything change if you don't use a ColumnGroup?
akahalls
akahallsOP2mo ago
Nothing changes. I’m using Advanced Tables, but i don’t know if it has anything to do with it
Dennis Koch
Dennis Koch2mo ago
Would be worth disabling it to check.
akahalls
akahallsOP2mo ago
Disabled, and checkboxes still without checking
Solution
akahalls
akahalls2mo ago
Removing .prevent from x-on:click.stop.prevent seems to solve the problem

Did you find this page helpful?