Hi, i figured when i start streamlit with bootstrap, it will break forms. As long as I run the code from command line, everything works. When I invoke streamlit from within python, forms are broken.
I opened an issue here.
  

      github.com/streamlit/streamlit
  

  
    
  
	  
  

  
    
      Forms broken with bootstrap 28
    

    
      
        opened 
        
          
        
        Aug 30, 2021
      
      


      
        
          
          thetoby9944
        
      
    

    
        
          bug
        
        
          needs triage
        
    
  


  
    ### Summary

st.form is not working when streamlit is started via code

### …Steps to reproduce

testform.py

```python
import streamlit.bootstrap
streamlit.bootstrap.run("app.py", '', [], flag_options={})
```

app.py
(Sample code form docs)

```python
import streamlit as st

with st.form("my_form"):
   st.write("Inside the form")
   slider_val = st.slider("Form slider")
   checkbox_val = st.checkbox("Form checkbox")

   # Every form must have a submit button.
   submitted = st.form_submit_button("Submit")
   if submitted:
       st.write("slider", slider_val, "checkbox", checkbox_val)

st.write("Outside the form")
```

**Expected behavior:**

When run via CLI `$ streamlit run app.py` everything works as expected.

![image](https://user-images.githubusercontent.com/15928349/131318761-f6d8fbd5-6d9a-4180-a8d2-2e4e5cb68f14.png)


**Actual behavior:**

When run via bootstrap script `$ python testform.py `  the form is broken.

![image](https://user-images.githubusercontent.com/15928349/131318571-0a2119cc-fc6e-4d94-93f3-1280d2db4a67.png)

### Is this a regression?

Unknown

### Debug info

- Streamlit version: 0.87.0
- Python version: 3.7.10
- Conda
- OS version: Win10
- Browser version: Chrome / Edge
  

  

  
    
    
  

  


Feel free to add if you have any thoughts about it.