LAMaglan / PokeFightSimulator

A (simple) fight simulator between any two Pokemon using FastAPI with Jinja frontend
0 stars 0 forks source link

when writing pokemon names, only show full match #30

Closed LAMaglan closed 3 months ago

LAMaglan commented 3 months ago

Address https://github.com/LAMaglan/PokeFightSimulator/issues/28

The fullPokemonList variable is introduced to store the complete list of Pokemon names once they're fetched. The filterDatalist function is added to handle updating the based on the current input value. This function checks if each Pokemon name starts with the input value (ignoring case) and creates an