[英]How to open a modal with in a modal without closing parent modal | react-modal
I am using React Modal Plugin to display the modals.我正在使用React Modal Plugin来显示模态。 I am trying to achieve to below scenario.
我正在努力实现以下场景。
That is already supported.那已经支持了。 Just nest the modal components.
只需嵌套模态组件。 That is, inside the rendered content of the first modal, render another modal component.
也就是说,在第一个模态的渲染内容中,渲染另一个模态组件。 When you click the opening element of the second modal, it will appear in front of the first, while the first stays open in the background.
当您单击第二个模态的开始元素时,它会出现在第一个的前面,而第一个在后台保持打开状态。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.