- Added new methods for each inputs ui_...; fixed empty or 0 values checkbox/radio checked handling
This commit is contained in:
1 parent
fd4e30bd42
commit
328a4d282c
2 files changed
+17
-5
No files matched your search
@@ -13,7 +13,7 @@ class UiRadio extends UiInput {
|
||||
|
||||
protected function objectAttribute() : array
|
||||
{
|
||||
if ( ( $this->options['value'] ?? false ) && ( $this->options['value'] === $this->value ) ) {
|
||||
if ( isset($this->options['value']) && ( $this->options['value'] === $this->value ) ) {
|
||||
return [
|
||||
'checked' => "checked"
|
||||
];
|
||||
|
||||
Reference in new issue
Block a user