diff --git a/src/Screen/Layouts/Accordion.php b/src/Screen/Layouts/Accordion.php index 78787fe6d..952bf4b1f 100644 --- a/src/Screen/Layouts/Accordion.php +++ b/src/Screen/Layouts/Accordion.php @@ -18,11 +18,6 @@ abstract class Accordion extends Layout */ protected $template = 'platform::layouts.accordion'; - /** - * @var bool - */ - private $openSet = false; - /** * @var array */ @@ -73,13 +68,7 @@ public function stayOpen(bool $stayOpen = true): self */ public function open(string|array $activeAccordion): self { - $activeAccordion = Arr::wrap($activeAccordion); - - $this->variables['open'] = $this->openSet - ? array_merge($this->variables['open'], $activeAccordion) - : $activeAccordion; - - $this->openSet = true; + $this->variables['open'] = Arr::wrap($activeAccordion); return $this; }