Skip to content

Commit ac24667

Browse files
Minor fix to InputfieldCheckbox.module
1 parent 9b796be commit ac24667

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wire/modules/Inputfield/InputfieldCheckbox.module

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class InputfieldCheckbox extends Inputfield {
100100
}
101101

102102
public function set($key, $value) {
103-
if($key == 'checkedValue') $this->checkedValueIsLabel = true;
103+
if($key == 'checkedValue' && $value != self::checkedValueDefault) $this->checkedValueIsLabel = true;
104104
return parent::set($key, $value);
105105
}
106106

0 commit comments

Comments
 (0)