call action modal close #956
Answered
by
asharifauzan
asharifauzan
asked this question in
Q&A
-
Hello, I want to create a modal with a form inside. So when the button submit is clicked it will close the modal. I'm using Reactjs and doing this job I should create a react state manually to handle modal visibility. Is tailwind provide a function like bootstrap |
Beta Was this translation helpful? Give feedback.
Answered by
asharifauzan
Jul 16, 2022
Replies: 1 comment 2 replies
-
UPDATE |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
saadeghi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
UPDATE
I'm using useRef, so when the submit button is fired it will executes
closeModalBtnRef.current.click()