- Added new methods for each inputs ui_...; fixed empty or 0 values checkbox/radio checked handling

This commit is contained in:
Dave Mc Nicoll committed 2023-05-12 18:58:22 +00:00
1 parent fd4e30bd42
commit 328a4d282c
2 files changed
+17 -5

No files matched your search

+1 -1
View File
@@ -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"
];