Skip to content

Commit

Permalink
Fixed method
Browse files Browse the repository at this point in the history
  • Loading branch information
bald-cat committed Jan 23, 2025
1 parent 6bb278d commit e5c2c36
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Screen/Layouts/Accordion.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,12 @@ public function stayOpen(bool $stayOpen = true): self
*
* @return $this
*/
public function activeAccordion(string|array $activeAccordion): self
public function open(string|array $activeAccordion): self
{
$activeAccordion = Arr::wrap($activeAccordion);

$this->variables['open'] = $this->openSet
? array_merge($this->variables['open'], Arr::wrap($activeAccordion))
? array_merge($this->variables['open'], $activeAccordion)
: $activeAccordion;

$this->openSet = true;
Expand Down

0 comments on commit e5c2c36

Please sign in to comment.