I've been working on a Cordova app using AngularJS (1.5.11) and I've run into a strange bug on iOS that doesn't occur on Android (despite using the same code).
I've stripped down unnecessary elements from the form to isolate the issue, but the bug persists.
Below is the simplified form:
<form method="post" ng-submit="$ctrl.login()">
<input type="email" name="username" value="" required ng-model="$ctrl.username">
<input type="password" name="password" value="" required ng-model="$ctrl.password">
<button type="submit">Submit</button>
</form>
The problem I'm facing is that the form submits even when it's invalid. It's a basic login form with fields for username, password, and a submit button.
Strangely, this issue affects every form in my app.
Am I overlooking something here? Any help would be greatly appreciated :)