From aacb1cd9100b863a060c38e5f54146991f0dce0f Mon Sep 17 00:00:00 2001 From: Jan Skrasek Date: Sat, 30 Sep 2017 14:34:02 +0200 Subject: [PATCH] Bs3InputMacros: do not add div.radio wrapper when partial rendering --- src/Bridges/Latte/Macros/BS3InputMacros.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Bridges/Latte/Macros/BS3InputMacros.php b/src/Bridges/Latte/Macros/BS3InputMacros.php index 8f7cf18..afce8ef 100644 --- a/src/Bridges/Latte/Macros/BS3InputMacros.php +++ b/src/Bridges/Latte/Macros/BS3InputMacros.php @@ -38,7 +38,7 @@ public static function input(Html $input, BaseControl $control, $isPart) $input->addHtml($input->value); $input->addClass('btn'); - } elseif ($control instanceof RadioList) { + } elseif ($control instanceof RadioList && !$isPart) { $input = Html::el('div')->addAttributes(['class' => 'radio'])->addHtml($input); }