Skip to content

Commit 7e556b6

Browse files
committed
bugfix for filamentv3.2
1 parent c62905f commit 7e556b6

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

src/Concern/HasActions.php

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -181,17 +181,20 @@ public function mountTreeAction(string $name, ?string $record = null)
181181

182182
public function mountedTreeActionShouldOpenModal(): bool
183183
{
184-
$action = $this->getMountedTreeAction();
184+
return ($this->getMountedTreeAction())->shouldOpenModal(
185+
checkForFormUsing: $this->mountedTableActionHasForm(...),
186+
);
187+
// $action = $this->getMountedTreeAction();
185188

186-
if ($action->isModalHidden()) {
187-
return false;
188-
}
189+
// if ($action->shouldOpenModal()) {
190+
// return false;
191+
// }
189192

190-
return $action->getModalDescription() ||
191-
$action->getModalContent() ||
192-
$action->getModalContentFooter() ||
193-
$action->getInfolist() ||
194-
$this->mountedTreeActionHasForm();
193+
// return $action->getModalDescription() ||
194+
// $action->getModalContent() ||
195+
// $action->getModalContentFooter() ||
196+
// $action->getInfolist() ||
197+
// $this->mountedTreeActionHasForm();
195198
}
196199

197200
public function getCachedTreeActions(): array

0 commit comments

Comments
 (0)