Skip to content

Commit

Permalink
consistency improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
czubehead committed Feb 12, 2018
1 parent 46be7f0 commit 7657181
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/BootstrapRenderer.php
Expand Up @@ -458,11 +458,8 @@ public function renderControl(Nette\Forms\IControl $control)
$controlHtml = $control->showValidation($controlHtml);
}

foreach ($this->fetchConfig(Cnf::inlineClasses) as $inlineClass) {
if (is_a($control, $inlineClass, TRUE)) {
$controlHtml = $this->configElem(Cnf::inlineInput, $controlHtml);
break;
}
if ($this->isInClassList($control, $this->fetchConfig(Cnf::inlineClasses))) {
$controlHtml = $this->configElem(Cnf::inlineInput, $controlHtml);
}

return $controlHtml;
Expand Down

0 comments on commit 7657181

Please sign in to comment.