FIX: wrap modal onShow inside next (PR #10651)

Before this commit, order of events in the onShow hook could be different than expected. This should ensure this code works for example:

onShow() {
  afterRender(() => {
    someInput.focus();
  })

GitHub