Results 1 to 4 of 4

Thread: fieldSet.remove(this.up(), true) crashes

    Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-889 in a recent build.
  1. #1
    Sencha Premium Member
    Join Date
    Oct 2011
    Location
    Paris, France
    Posts
    187

    Default fieldSet.remove(this.up(), true) crashes

    Hey team,

    Inside a button handler in a fieldset :

    Code:
    var fieldSet = this.up('fieldset');
    fieldSet.remove(this.up(), true);
    Crash log :
    Code:
    Uncaught TypeError: Cannot call method 'removeCls' of null
    Code:
    sencha-touch-all-debug-w-comments.js l.52468
    Maybe there is another way (button deleting its parent container inside a form) ?

    By the way, it would be great to be able to removeById(), instead of passing a whole object (this.up()) for deletion/removal.

  2. #2
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661

    Default

    Thank you for the report.

  3. #3
    Sencha User rdougan's Avatar
    Join Date
    Oct 2008
    Posts
    1,159

    Default

    Sorry, I can't reproduce this.

    What are you trying to do? Remove the button from the field set?

  4. #4
    Sencha User rdougan's Avatar
    Join Date
    Oct 2008
    Posts
    1,159

    Default

    Actually, I just fixed the issue with removeCls.

    But if you want to remove the button, you can either do button.destroy() or fieldset.remove(button).

Posting Permissions

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