Hi @chriddyp! Thank you for your answer. I have seen this in the documentation, but I don’t think it solves the problem. I am already working with single dynamic options, but I still run into the accent problem. I’ll give the same example from above. Imagine there is an option labeled “São Paulo” and I want to make it appear by typing “sao pa.” What I am doing is to input “sao pa” into a call back function “update_options,” which filters the options by flattening both the input and the label strings and checking if there is a substring in it.
return helper.filter_options(search_value, cities)
def filter_options(search_value, cities):
if not search_value:
search_value = Location.flattening(search_value)
return [o for o in cities if search_value in Location.flattening(o["label"]) and search_value ==
The function then returns a list of options that will be included in the dropdown.