Dimming after pressing on button with callbacks

Hi!

I’m developing a Streamlit app, that starts a process after pressing a button. I’m using st.button with on_click callback. But, when I press on the button, the entire streamlit page dims. This doesn’t happen if I use if st.button; do_thing() with the exact same function. So;

st.button(
    "Do thing", 
    on_click=do_thing, 
    kwargs=dict(info=my_info)
    )

Causes the app dimming. While

if st.button("Do thing"):
    do_thing(info=my_info)

doesn’t cause dimming.

Am I doing something wrong? Is this expected behaviour?

ps: I’m updating the session state inside do_thing

Streamlit version: 1.10.0