Results 1 to 5 of 5

Thread: navigationview back button failing on circular items

  1. #1
    Sencha User
    Join Date
    May 2012
    Posts
    12
    Vote Rating
    1
      0  

    Default navigationview back button failing on circular items

    i'm pushing views onto a navigationview. some of these views link to other views. so we can up with a circular stack like

    [a, b, c, b, etc...]

    now, when i use the back button starting at say, the last item 'b' in the above array the back button will work until i get back to the first item 'b' and then the back button will stop working. no erros, nothing. just total, silent failure. i've also tried manually calling .push() on the nav view from this point, and that fails as well.

    what about how I am doing this would cause the navigation view to be completely incapacitated like this?

    thank you
    ian

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,553
    Answers
    3931
    Vote Rating
    1272
      0  

    Default

    What does the config look like for the b items? Do you use the id or itemId config? Are they the same instance or different instances of the same class?
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    May 2012
    Posts
    12
    Vote Rating
    1
      0  

    Default

    Quote Originally Posted by mitchellsimoens View Post
    What does the config look like for the b items? Do you use the id or itemId config? Are they the same instance or different instances of the same class?
    i am using itemId not id

    the b items are instances of the same class.

    have yet to find the underlying issue but have been able to determine that the nav view fails whenever i add a second instance of a class to the navigation stack and then return to the first instance. e.g. if it were

    [a, c, b, c]

    the back button will stop working when i return to c...but i can keep moving forward in the stack indefinitely with no issues. very strange.

    what are some typical causes of nav view silent failure?

    many thanks

  4. #4
    Sencha User
    Join Date
    May 2012
    Posts
    12
    Vote Rating
    1
      0  

    Default

    so i was able to fix this by removing the itemId config on classes c and b respectively.

    I'm at a complete loss for why having an itemId would cause this problem and it'd be nice for future troubleshooters to have an understanding why. Silent component failures like this are massive time sucks

  5. #5
    Sencha User
    Join Date
    Jul 2012
    Posts
    1
    Vote Rating
    0
      0  

    Default

    I also had this problem and resolved it by removing the itemId from the views that are added to the navigationview. This is a really nasty bug, I hope it gets documented and fixed.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •