mirror of https://github.com/BTCPrivate/copay.git
Clean the search box when returns from another state
This commit is contained in:
parent
a8defa1377
commit
a0c9e5eba5
|
@ -49,6 +49,7 @@ angular.module('copayApp.controllers').controller('addressbookListController', f
|
||||||
$scope.$on("$ionicView.beforeEnter", function(event, data) {
|
$scope.$on("$ionicView.beforeEnter", function(event, data) {
|
||||||
$scope.isChromeApp = platformInfo.isChromeApp;
|
$scope.isChromeApp = platformInfo.isChromeApp;
|
||||||
$scope.showAddIcon = false;
|
$scope.showAddIcon = false;
|
||||||
|
$scope.addrSearch = { value: null };
|
||||||
initAddressbook();
|
initAddressbook();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -29,8 +29,8 @@
|
||||||
<i class="icon ion-ios-search placeholder-icon"></i>
|
<i class="icon ion-ios-search placeholder-icon"></i>
|
||||||
<input type="search"
|
<input type="search"
|
||||||
placeholder="Search"
|
placeholder="Search"
|
||||||
ng-model="addrSearch"
|
ng-model="addrSearch.value"
|
||||||
ng-change="findAddressbook(addrSearch)" ng-model-onblur>
|
ng-change="findAddressbook(addrSearch.value)" ng-model-onblur>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<ion-list>
|
<ion-list>
|
||||||
|
|
Loading…
Reference in New Issue