Skip to content

Commit a1fa5ff

Browse files
committed
Hidden control can have an ID attribute now.
1 parent a37795c commit a1fa5ff

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/bootbuilder/Controls/Hidden.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ public function __construct($name, $value = "") {
1010
}
1111

1212
public function renderBasic() {
13-
$html = "<input type='hidden' name='$this->name' value='$this->value'>";
13+
$html = "<input type='hidden' name='$this->name' value='$this->value'";
14+
if($this->id) $html .= " id='$this->id'";
15+
$html .= ">";
1416
return $html;
1517
}
1618

0 commit comments

Comments
 (0)