Преглед изворни кода

Update input.py

Introducing case insensitive autocompletition
Jacopo пре 2 година
родитељ
комит
6f242c27dd
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      nicegui/elements/input.py

+ 1 - 1
nicegui/elements/input.py

@@ -58,7 +58,7 @@ class Input(ValueElement, DisableableElement):
             def find_autocompletion() -> Optional[str]:
                 if self.value:
                     for item in autocomplete:
-                        if item.startswith(self.value):
+                        if item.lower().startswith(self.value.lower()):
                             return item
 
             def autocomplete_input() -> None: