Skip to content

Commit

Permalink
If the checkbox rule is disabled, the value should not be selected wh…
Browse files Browse the repository at this point in the history
…ile clicking on select all.
  • Loading branch information
abhaypithadiya committed Sep 12, 2023
1 parent f7c423e commit c0cde09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Traits/WithCheckbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function selectCheckboxAll(): void
collect($data->items())->each(function (array|Model|\stdClass $model) use ($actionRulesClass) {
$rules = $actionRulesClass->recoverFromAction('pg:checkbox', $model);

if (isset($rules['hide'])) {
if (isset($rules['hide']) || isset($rules['disable'])) {
return;
}
$value = $model->{$this->checkboxAttribute};
Expand Down

0 comments on commit c0cde09

Please sign in to comment.