Skip to content

Commit

Permalink
Fix 1836 AccordionSection activate
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Sep 1, 2022
1 parent 33779a9 commit 94ac67c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Form/Layout/Section/Accordion.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,9 @@ public function addSection($title, \Closure $callback = null, $icon = 'dropdown'

return $section->add([$this->formLayout, 'form' => $this->form]);
}

public function getSectionIdx($section)
{
return parent::getSectionIdx($section instanceof AccordionSection ? $section : $section->getOwner());
}
}

0 comments on commit 94ac67c

Please sign in to comment.