Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
iwillhappy1314 committed Feb 15, 2023
1 parent bbb8a1d commit 81c742e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Renders/AdminFormRender.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function renderPair(Nette\Forms\Control $control): string
$control->setOption('class', 'rs-form--' . $type);
}

$control->setOption('id', 'grp-' . $control->name);
$control->setOption('id', 'grp-' . $control->getName());

if ($type === 'button') {

Expand Down
2 changes: 1 addition & 1 deletion src/Renders/DefaultFormRender.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function renderPair(Nette\Forms\Control $control): string

$control->setOption('class', implode(' ', $row_class) . ' ' . implode(' ', $group_class));

$control->setOption('id', 'rs-form-' . $control->name);
$control->setOption('id', 'rs-form-' . $control->getName());

if ($type === 'button') {

Expand Down

0 comments on commit 81c742e

Please sign in to comment.