Fix #9975.
Merge pull request #10022 from adobe/kai/fix-9975-modal-dialog-is-not-modal

Fix #9975.