Skip to content

Commit

Permalink
Merge pull request #15 from chengkangzai/patch-3
Browse files Browse the repository at this point in the history
Fix bug where exception will occur if user click close button twice
  • Loading branch information
ralphjsmit authored Dec 16, 2022
2 parents 591637f + 2e009ae commit 262b884
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Livewire/Concerns/HasState.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,12 @@ trait HasState

public bool $actionableOpen = false;

public function closeActionable(string $actionable): void
public function closeActionable(?string $actionable): void
{
if ($actionable === null) {
return;
}

if ($this->actionableId !== $actionable) {
return;
}
Expand Down

0 comments on commit 262b884

Please sign in to comment.