Skip to content

st.multiselect autocomplete/match not working for numerical values #3108

Closed
@ghost

Description

Summary

st.multiselect autocomplete function does not work for numerical values

Steps to reproduce

Code snippet:

col1 = st.beta_columns(1)
fruit_type = ["apple-4", "apple-17", "apple-78", "orange-175", "orange-176"]

with col1:
    selected_fruit_type = st.multiselect("Select Fruit Selection", options=fruit_type)

(Please provide a code snippet! This will help expedite us finding and solving the problem.)

If applicable, please provide the steps we should take to reproduce the bug:

  1. Click on the multiselect box
  2. Enter 2 and you will get apple-78 as a match
  3. Enter 3 and you will get apple-175 as a match
  4. Enter 0 gets you apple-4 as a match

Expected behavior:

Enter 2, 3 or 0 should not get a match in the dropdown list.

Actual behavior:

See attached screenshots.

Is this a regression?

Not sure. This is my first time using this feature.

Debug info

  • Streamlit version: 0.74.0
  • Python version: Python 2.7.17
  • OS version:
  • Browser version: Version 89.0.4389.72 (Official Build) (x86_64)

Additional information

If needed, add any other context about the problem here. For example, did this bug come from https://discuss.streamlit.io or another site? Link the original source here!
Screen Shot 2021-04-09 at 4 54 57 PM
Screen Shot 2021-04-09 at 4 55 04 PM
Screen Shot 2021-04-09 at 4 55 12 PM

Metadata

Metadata

Assignees

Labels

type:bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions