From 01779825f05fbfdcb1cf3859e7d476e1fe519dae Mon Sep 17 00:00:00 2001 From: Dan Harrin Date: Sun, 21 Sep 2025 22:05:01 +0100 Subject: [PATCH] fix: Hidden actions in schemas (#17892) --- packages/schemas/src/Concerns/HasComponents.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/schemas/src/Concerns/HasComponents.php b/packages/schemas/src/Concerns/HasComponents.php index 533ee93642..e0773e232d 100644 --- a/packages/schemas/src/Concerns/HasComponents.php +++ b/packages/schemas/src/Concerns/HasComponents.php @@ -320,8 +320,8 @@ trait HasComponents $components = array_filter( $allComponents, function (Component | Action | ActionGroup $component) use ($withActions, $withHidden): bool { - if (($component instanceof Action) || ($component instanceof ActionGroup)) { - return $withActions; + if ((($component instanceof Action) || ($component instanceof ActionGroup)) && (! $withActions)) { + return false; } return $withHidden || ! $component->isHidden();