diff --git a/src/Fields/Datepicker.php b/src/Fields/Datepicker.php
index <HASH>..<HASH> 100644
--- a/src/Fields/Datepicker.php
+++ b/src/Fields/Datepicker.php
@@ -94,15 +94,20 @@ EOT;
     {
         $startDay = $options['start-day'] ?? 1;
         $format = $options['format'] ?? 'YYYY-MM-DD';
+        $event = $options['event'] ?? 'keydown';
 
         return <<<EOT
-datepicker("#$id", {
+var _{$id}Datepicker = datepicker("#$id", {
   startDay: $startDay,
   dateSelected: moment(document.getElementById("$id").value).toDate(),
   formatter: (input, date, instance) => {
       input.value = moment(date).format("$format");
   }
 });
+document.getElementById("$id").addEventListener('{$event}', function () {
+    let date = moment(this.value).toDate();
+    _{$id}Datepicker.setDate(date, true);
+});
 EOT;
     }
 }
Because datepicker had an issue with updating