Browse Source

Update input.py

Jacopo 2 năm trước cách đây
mục cha
commit
631aa5dc3f
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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):]}"')