Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
javiereguiluz committed Oct 16, 2023
1 parent 7d5ec84 commit 3d1ac8c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Factory/FormLayoutFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ private function fixFormColumns(FieldCollection $fields): void
if ($aFormColumnIsOpen) {
// this is needed because fields inside columns look better when they take the
// entire width available; users can override this by setting custom CSS classes
$fieldDto->setDefaultColumns(12);
$fieldDto->setDefaultColumns('col-12');
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/Form/EventListener/FormLayoutSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public static function getSubscribedEvents(): array
public function handleTabErrors(FormEvent $event)
{
$formTabs = [];
/** @var Form $formType */
/** @var Form $child */
foreach ($event->getForm() as $child) {
/** @var FieldDto $fieldDto */
if (null === $fieldDto = $child->getConfig()->getAttribute('ea_field')) {
Expand Down

0 comments on commit 3d1ac8c

Please sign in to comment.