Strange behavior with Prompt Alerts Keyboard

Hey Guys,

i experienced sth very strange. Whenever I opened the keyboard of an prompt alert, the style Attribute margin-top of the <div class="scroll-Content"></div> in <ion-content>
gets deleted. That mean, that the page Content was pushed under my Header. That happened only for my main page.

I found an Workaround with this:

ionViewDidEnter() {

    var scrollcontent = document.getElementsByClassName('scroll-content');

    scrollcontent[1].setAttribute("style", "margin-top: 56px");


  }

Is this a bug or just sth very random in my Code?

1 Like

Hey brother I was facing exactly the same issue, I placed your code and it got resolved.

Thank you so very much <3