Ver Fonte

Update input.py

Jacopo há 2 anos atrás
pai
commit
631aa5dc3f
1 ficheiros alterados com 1 adições e 1 exclusões
  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):]}"')