浏览代码

Update input.py

Jacopo 2 年之前
父节点
当前提交
631aa5dc3f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      nicegui/elements/input.py

+ 1 - 1
nicegui/elements/input.py

@@ -56,7 +56,7 @@ class Input(ValueElement, DisableableElement):
 
         if autocomplete is not None:
             def AutoCompleteInput():
-                if len(self.value) > 1:
+                if len(self.value) > 0:
                     for item in autocomplete:
                         if item.startswith(self.value):
                             self.props(f'shadow-text="{item[len(self.value):]}"')