Content disappears when focusing on input in modal

When a modal is opened on large screens (iPad) it appears centered and not fullscreen, however when this happens the content behind it seems to disappear of the screen, then reappear when the modal is closed.

Is there a fix for this to get the content that should be behind the modal to stay visible there?

Uses a popup instead

I’ve realised this problem actually occurs when the ionic keyboard opens. There is a very short delay where the modal opens and the content in the background is still visible. When the keyboard opens the content in the background disappears, then when the keyboard closes, the content in the background reappears