Please help me out with type-ahead - Works in localhost but not on cloud

You can check out screenshots of the issue at hand here.

Any idea why this happens?

In my opinion, the three main suspects are:

  • Different code (making a mistake is much easier that you may think).
  • Different versions of Streamlit.
  • Different versions of streamlit-searchbox.

Not necessarily in that order.

my mistake sorry
# Insert the user input as the first option
results.insert(0, query)
this fixed it

Different code?

yep… I thought i had copy pasted the entire code from local, but must have missed this somehow. thanks for making me check it again!!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.