diff --git a/lib/zin/wg/datepicker/v1.php b/lib/zin/wg/datepicker/v1.php index 9e9904c018..fc8fda0fb7 100644 --- a/lib/zin/wg/datepicker/v1.php +++ b/lib/zin/wg/datepicker/v1.php @@ -13,11 +13,14 @@ class datePicker extends wg */ protected function build(): wg { + list($name, $id, $defaultValue) = $this->prop(array('name', 'id', 'defaultValue')); return zui::datePicker ( set::_class('form-group-wrapper'), + set::_map(array('value' => 'defaultValue')), set::icon('calendar'), - set($this->props) + set($this->props), + h::formHidden($name, $defaultValue, setID($id)) ); } }