Issue: navCtrl automatically entering input field on a page


#1

Hey Ionic community,

The Problem
When entering a page via the “navCtrl”, if that page contains an input field, then the app will automatically enter that input field on that page. This seems to be a random behaviour too.

I do however use Angular’s 2 built in from controller to set up validation on the input fields which is achieved in the constructor method of the component.


#2

OK, so there Issue here was the face that i was not using $event.srcEvent.stopPropagation(); on custom tap events.

This meant that when a button was selected/tapped; if there was an input element at the same position as the button on the next page, then it would auto focus into that input element.

This seemed to be random active due to the fact that pages are scrollable and the elements didn’t align up every time.