I implement pull to refresh on my search on ionic. When I pull down to refresh the result, the search bar also got pulled down. How to make the search bar element to stick to header or tab, so only search result got pulled down.
<html ng-app="ionicApp">
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
<title>Ionic Pull to Refresh</title>
<link href="//code.ionicframework.com/nightly/css/ionic.css" rel="stylesheet">
<script src="//code.ionicframework.com/nightly/js/ionic.bundle.js"></script>
</head>
<body ng-controller="MyCtrl">
<ion-header-bar class="bar-positive">
<h1 class="title">Pull To Refresh</h1>
</ion-header-bar>
<ion-content>
<div class="list list-inset">
<label class="item item-input">
<i class="icon ion-search placeholder-icon"></i>
<input type="text" placeholder="Search">
</label>
</div>
<ion-refresher on-refresh="doRefresh()">
</ion-refresher>
<ion-list>
<ion-item ng-repeat="item in items">{{item}}</ion-item>
</ion-list>
</ion-content>
</body>
</html>
Here is the https://codepen.io/cafe3/pen/GWZXgx
If i put the search bar outside <ion-content>, It will be block by tabs if tabs positioned at top (I think on Android, the tabs will be at top).
I want the search bar to stick at top or at tabs if the tabs are positioned at top so it doesnt get pulled down by ion-refresher
Any way to solve this?