Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49220

Ion-item links work in browser, but not on the device

$
0
0

@Kyle123 wrote:

Hi,

I've spent about 3 hours trying to track this down, but I've run out of ideas of things to check. In my last deployment to Ionic View (and debugging on an android device) my ion-item links have stopped working - they seem to register a touch but no navigation occurs.

The links work fine in the browser.

This is on IOS (using Ionic View) and Android 5.1 using usb debugging.

The refresh works as expected

Simplest version I could come up with:

View

<ion-view view-title="Trips">
  <ion-content>
    <ion-refresher
        pulling-text="Pull to refresh..."
        on-refresh="doRefresh()">
    </ion-refresher>

    <ion-list>
      <ion-item class="item-icon-right" ng-repeat="trip in trips" ng-href="#/tab/trips/{{trip.id}}">
        <h2>{{trip.date | localDate }}</h2>
        <p>{{trip.vehicleType}}</p>
        <i class="icon ion-chevron-right icon-accessory"></i>
      </ion-item>
    </ion-list>
  </ion-content>
</ion-view>

Simple Controller

.controller('TripsCtrl', ['$scope', 'TripService', function($scope, TripService) {

    $scope.trips = {};
    $scope.doRefresh = function() {

        TripService.getTripsForUser()
            .then(function(trips) {
                $scope.trips = trips;
            }).finally(function() {
                $scope.$broadcast('scroll.refreshComplete');
            });
    }

    $scope.init = function(){
        $scope.doRefresh();
    }();

}])

The ion-list element has a .disable-user-behavior class added to it, though I can't work out where this is coming from.

Cordova CLI: 6.0.0
Gulp version:  CLI version 3.9.1
Gulp local:
Ionic Version: 1.2.4
Ionic CLI Version: 1.7.14
Ionic App Lib Version: 0.7.0
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Mac OS X El Capitan
Node Version: v4.2.2
Xcode version: Not installed

I've gone through and simplified all my code down, removed functionality to try and narrow down the problem, but it still persists.

I'm stuck now, and would really appreciate any pointers as to where to look.

Cheers

Posts: 8

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 49220

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>