Skip to content

Commit 120a2ca

Browse files
author
Eugene Tupikov
committed
Fixed the setting numeric value for input
1 parent 5b4d1c2 commit 120a2ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/BaseColumn.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ protected function prepareValue()
180180
$value = $data->{$this->name};
181181
} elseif (is_array($data)) {
182182
$value = ArrayHelper::getValue($data, $this->name, null);
183-
} elseif(is_string($data)) {
183+
} elseif(is_string($data) || is_numeric($data)) {
184184
$value = $data;
185185
}else {
186186
$value = $this->defaultValue;

0 commit comments

Comments
 (0)