Skip to content

Commit

Permalink
bugfix for filamentv3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
cklei-carly committed Mar 28, 2024
1 parent c62905f commit 7e556b6
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions src/Concern/HasActions.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,17 +181,20 @@ public function mountTreeAction(string $name, ?string $record = null)

public function mountedTreeActionShouldOpenModal(): bool
{
$action = $this->getMountedTreeAction();
return ($this->getMountedTreeAction())->shouldOpenModal(
checkForFormUsing: $this->mountedTableActionHasForm(...),
);
// $action = $this->getMountedTreeAction();

if ($action->isModalHidden()) {
return false;
}
// if ($action->shouldOpenModal()) {
// return false;
// }

return $action->getModalDescription() ||
$action->getModalContent() ||
$action->getModalContentFooter() ||
$action->getInfolist() ||
$this->mountedTreeActionHasForm();
// return $action->getModalDescription() ||
// $action->getModalContent() ||
// $action->getModalContentFooter() ||
// $action->getInfolist() ||
// $this->mountedTreeActionHasForm();
}

public function getCachedTreeActions(): array
Expand Down

0 comments on commit 7e556b6

Please sign in to comment.