Open cardosofede opened 1 year ago
I had the same problem and found the answer mentioned here https://github.com/okld/streamlit-elements/issues/2
I have a TextField with the select=True option and can access the value by using onChange=sync(None, 'select_value')
. The value from the 'select_value' returning dict can then be accessed by .props.value
if st.session_state.select_value is not None:
# Select must use the second sync var
select_value = st.session_state.select_value.props.value
I hope this helps for the mui.Select too, or you switch to the TextField with select option.
Hi, I just started with this library today and it's amazing!
This is the code that I'm using in a custom card to start strategies in Hummingbot:
and this is the method set_strategy:
When I press another button that triggers the execution I'm receiving this error:
I also inspected the event that arrives in the function and is the dict --> {"isTrusted":false}
I don't know react so probably I'm missing something in how to use mui.Select, any help is welcome!