Results 1 to 5 of 5

Thread: [ExtJS 6.2.1] Fieldset with checkboxToggle set form state to dirty

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext JS Premium User
    Join Date
    Jan 1970
    Posts
    12

    Default [ExtJS 6.2.1] Fieldset with checkboxToggle set form state to dirty

    In this example, if you expand a fieldset with a checkbox, the form's state becomes dirty (the console.log's prove that):
    https://fiddle.sencha.com/#view/editor&fiddle/2094

    As this isn't a form field but rather a presentation item of the fieldset, that's not what I would expect.

    The workaround I found is to set isFormField to false in the checkbox attribute
    https://fiddle.sencha.com/#view/editor&fiddle/2096

  2. #2
    Sencha Premium User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,258

    Default

    It's arguable whether or not the fieldset checkbox is a presentation item only, it largely depends on the form itself, so I'm not really sure this is a bug.
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

  3. #3
    Ext JS Premium User
    Join Date
    Jan 1970
    Posts
    12

    Default

    How should we tell the form it should not consider the checkbox for its dirty state then?

    Florent

  4. #4
    Sencha Premium User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,258

    Default

    I think as you have it is fine.
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

  5. #5
    Ext JS Premium User
    Join Date
    Jan 1970
    Posts
    12

    Default

    Well, that's a hack. `isFormField` is a readonly property normally.

    Florent

Similar Threads

  1. Replies: 2
    Last Post: 12 Dec 2014, 2:25 AM
  2. Replies: 1
    Last Post: 10 Jan 2014, 6:11 AM
  3. Field that do not affect form dirty state
    By JeromeA in forum Ext: Q&A
    Replies: 2
    Last Post: 31 Jul 2012, 12:10 PM
  4. Manipulating Dirty state
    By ChrisR in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 15 Oct 2007, 8:27 AM

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
  •