Streamlit quill component, how to clear contents with button click

Thanks for the reply, my first point of concern was how to clear what’s displayed in the streamlit-quill component after someone writes in it. With other widgets displayed in app, I have a ‘Clear Form’ button which on_click runs a function that sets the session state keys of the widgets to None (st.session_state.key = None) which essentially clears the displayed widgets. Howeve,r when I do the same for streamlit quill component using st_quill(key=‘comment_key’) and do st.session_state.comment_key = None in my Clear Form function, the actual contents behind the scenes of the key of the quill component gets cleared. (If i print the comment key it is now blank, but the contents of what the user had written in the quill component is still displayed.) Is there a way to clear the contents of this quill component such as the main streamlit widgets?

Also, another problem I had was very rarely this component would fail to load. Seems like a issue in general with st components but it is same warning as this but with thest_quill component: Any ideas on “Your app is having trouble loading the st_aggrid.agGrid component”? - :jigsaw: Custom Components / streamlit-aggrid - Streamlit