I have a bootstrap modal that has a form. I need to be able to click outside the modal so that the modal closes when the form is submitted. how can i achieve this in react, thanks
EDIT:
bootstrap_modal
form_inside_bootstrap_modal
submit_button_inside_form
</ form_inside_bootstrap_modal>
</ bootstrap_modal>
I want to be able to close the bootstrap modal when submit_button_inside_form is clicked
SOLUTION:
document.elementFromPoint(x,y).click()