From d6503ace506fe46b55898055523b169e433391bd Mon Sep 17 00:00:00 2001 From: PeopleSea <70972819+People-Sea@users.noreply.github.com> Date: Mon, 16 Mar 2026 20:43:32 +0800 Subject: [PATCH] fix: prevent duplicate table action mounting by failing resolution --- packages/actions/src/Concerns/InteractsWithActions.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/actions/src/Concerns/InteractsWithActions.php b/packages/actions/src/Concerns/InteractsWithActions.php index 078e75369f5..22732043b45 100644 --- a/packages/actions/src/Concerns/InteractsWithActions.php +++ b/packages/actions/src/Concerns/InteractsWithActions.php @@ -595,6 +595,12 @@ protected function resolveTableAction(array $action, array $parentActions): Acti throw new ActionNotResolvableException('Failed to resolve table action for Livewire component without the [' . HasTable::class . '] trait.'); } + if (count($parentActions)) { + $parentAction = Arr::last($parentActions); + + return $parentAction->getModalAction($action['name']) ?? throw new ActionNotResolvableException("Action [{$action['name']}] was not found for action [{$parentAction->getName()}]."); + } + if ($action['context']['bulk'] ?? false) { $resolvedAction = $this->getTable()->getBulkAction($action['name']); }