diff --git a/src/Renders/AdminFormRender.php b/src/Renders/AdminFormRender.php index 0083e73..2766164 100644 --- a/src/Renders/AdminFormRender.php +++ b/src/Renders/AdminFormRender.php @@ -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') { diff --git a/src/Renders/DefaultFormRender.php b/src/Renders/DefaultFormRender.php index 78899b8..26ae897 100644 --- a/src/Renders/DefaultFormRender.php +++ b/src/Renders/DefaultFormRender.php @@ -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') {