How to blur (unfocus / remove focus) of all HTML elements?


I need a way to “unfocus” all the buttonson the form. (in javascript document.activeElement.blur())

The application currently is confusing the users, because buttons (from previous session) look “stuck” when they have the focus.

any idea if I can use the bokeh_chart hack to run this javascript line?

thanks much

Hi @M_A,

Right now that’s not supported in Streamlit, but we are working on features that will allow such customization. Please take a look at our Roadmap for more details.

Let me know if there is anything else I can help you with.
And thanks for using Streamlit!