Second Modal Becomes Non Modal

Hello,

I have a scenario:
There are two Modal Windows opened over a Layout.
When the user Close the “FIRST” Modal window, the “SECOND” modal Window becomes NON modal.

Could you please provide the soultion for the same.

Attached is the Sample files to reproduce the issue.

Regards
VibhavOnCloseOfFirstModalWin.zip (160 KB)

Hello,

there can be only one modal window. You should make the 1st window non-modal before w2.setModal(true) is called:

w1.setModal(false);
w2.setModal(true);