Skip to content

Commit 0c3e91f

Browse files
committed
hidden fields bug fixed
1 parent 7122807 commit 0c3e91f

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Ajax/common/html/HtmlSingleElement.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ public function setTitle($value) {
3737
$this->setProperty("title", $value);
3838
return $this;
3939
}
40+
41+
public function setStyle($value){
42+
$this->setProperty("style", $value);
43+
return $this;
44+
}
4045

4146
/**
4247
* {@inheritDoc}

Ajax/semantic/widgets/base/FieldAsTrait.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ public function fieldAsHidden($index,$attributes=NULL){
210210
$attributes=[];
211211
}
212212
$attributes["inputType"]="hidden";
213+
$attributes["style"]="display:none;";
213214
return $this->fieldAsInput($index,$attributes);
214215
}
215216

0 commit comments

Comments
 (0)