Closing the current modal while opening other
See original GitHub issueIssue Description
I am opening an modal upon pressing a button from another modal and would need to close previously opened modal.
Please assist. below code doesn’t work.
<Button onPress={this.confirmOrder} title="CONFIRM" />
confirmOrder = () => { const { modal: { openModal, closeModal }, } = this.props; closeModal; openModal('NewOrderPost'); };
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Bootstrap modal: close current, open new - Stack Overflow
For Bootstrap v4 ... You can toggle between modals by having putting data-dismiss="modal" and data-toggle="modal" in the same HTML element. You'd also need...
Read more >Bootstrap : Close current and open a new modal window
Bootstrap : Close current and open a new modal window. This is very basic requirement to open second modal window by clicking on...
Read more >How to close one bootstrap modal form if another o...
I have been looking around at how to close one bootstrap modal when another opens, but none of the solutions seem to work....
Read more >Close modal and open new modal
I am trying to create a script that shows my login modal on page load. I have a button that opens the register...
Read more >Bootstrap modal: close current, open new - CodePen
A proper and clean way to get this done without addtional Javascript/jQuery. The main purpose of this demo is was to answer this...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Omg it’s working, thanks a lot!!
Oh my bad @syedirfan33! After reading your initial message again I think I’ve found where your issue might come from: you wrote
closeModal;
instead of actually calling the function viacloseModal();
, that’s why nothing is happening.