Pārlūkot izejas kodu

Update input.py

Jacopo 2 gadi atpakaļ
vecāks
revīzija
631aa5dc3f
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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):]}"')