I have an image that has an ng-click associated to it. When clicked, a modal window popups up.
The problem is that the modal scrolls automatically to one of the inputs in the modal.
This doesn’t happen if the image with the ng-click is in the header bar.
I tried using the latest nighlty version of Ionic (v1.0.0-beta.6-nightly-110), but no luck there.
This is an extract of the code.
<div class="bar bar-footer">
<div class="row">
<div class="col">
<img src="img/home.png">
</div>
<div class="col">
<img src="img/modal.png" ng-click="showModal()">
</div>
<div class="col">
<img src="img/card.png">
</div>
<div class="col">
<img src="img/help.png">
</div>
</div>
</div>
In the controller:
$scope.showModal = function() { $scope.modal.show(); };