From 153b971c3a9b63afb7d6d1cf1829851326a2dee2 Mon Sep 17 00:00:00 2001 From: bald-cat Date: Fri, 24 Jan 2025 14:08:14 +0200 Subject: [PATCH] change open() method --- src/Screen/Layouts/Accordion.php | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) 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; }