Opening modal from footer causes problems


#1

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(); };


#2

Hey,

could you make a codepen to reproduce the behavior?
Maybe your click triggers twice and during slide-in of the modal your tap focuses accidentally the input.

Greets, bengtler