diff --git a/src/Traits/WithCheckbox.php b/src/Traits/WithCheckbox.php index 5292b4bc..ef9b3a62 100644 --- a/src/Traits/WithCheckbox.php +++ b/src/Traits/WithCheckbox.php @@ -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};