There is a issue. To reproduce:
- Click "Open ModalNestedB"
- Click "Close" in "ModalNestedB"
- Click "Open ModalB" in "ModalNestedA"
- Click "Confirm" in "ModalNestedB"
- Click "Confirm" in "ModalNestedA"
The returnValue of "ModalNestedB" will be "null" which is the first result of "ModalNestedB".