I noticed today that I cannot focus any element in the callback of the modal.onWillDismiss, but only in the modal.onDidDismiss …
But wouldn’t it make more sense to release the focus trap earlier on to get a smoother experience?
In my case I navigate to a new page in the dismiss handler and on that page is an textarea that should get focussed on (view) init.
As a current solution I had to built a rather complex solution to start navigating in onWillDismiss, but call the focus method manually after I trigger an event on the onDidDismiss
But I’m not exactly sure, what the expected behaviour is, so I wrote here before opening a bug issue.