From 82fc4f971cc7ec227cbe049c1849a4745411aecf Mon Sep 17 00:00:00 2001
From: Karson <karsonzhang@163.com>
Date: Fri, 18 Sep 2020 16:49:43 +0800
Subject: [PATCH] 新增时间字段CRUD默认关闭autocomplete

---
 application/admin/command/Crud.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/application/admin/command/Crud.php b/application/admin/command/Crud.php
index f4405a4..bdc2bd0 100755
--- a/application/admin/command/Crud.php
+++ b/application/admin/command/Crud.php
@@ -1459,7 +1459,7 @@ EOD;
         }
 
         if (in_array($datatype, ['date', 'datetime']) || $formatter === 'datetime') {
-            $html .= ", operate:'RANGE', addclass:'datetimerange'";
+            $html .= ", operate:'RANGE', addclass:'datetimerange', autocomplete:false";
         } elseif (in_array($datatype, ['float', 'double', 'decimal'])) {
             $html .= ", operate:'BETWEEN'";
         }
--
libgit2 0.24.0