react-skylight icon indicating copy to clipboard operation
react-skylight copied to clipboard

Support open another popop in a opening popop

Open dcuti8 opened this issue 6 years ago • 0 comments

Can I open another popop in a opening popop?

I have modal one and modal two, I click the button to open the modal two, and I can the 'Open Modal 1' in the modal two popop. Generally, the modal one should show on top the modal two, but actually the modal two cover the modal one.....

           <button onClick={() => this.animated1.show()}>Open Modal 1</button>
            <button onClick={() => this.animated2.show()}>Open Modal 2</button>

            <SkyLight  
              ref={ref => this.animated1 = ref} 
            >
              <Label>Hello, I animated one</Label>
            </SkyLight>

            <SkyLight  
              ref={ref => this.animated2 = ref} 
            >
              <div>
                <Label>Hello, I animated two</Label>
                <button onClick={() => this.animated1.show()}>Open Modal 1</button>
              </div>
            </SkyLight>

dcuti8 avatar Jan 11 '19 01:01 dcuti8