Ionic modal and tab key pressed

Whenever I have a form inside a modal, if I run it on the browser, and press tab key so as to change fields, the scroll always get stucked near current focus. I can never more go up again. It looks like there is an error on ‘auto scrolling’ that follows focused field cursor. How could I fix it?

Thanks in advance.