Thank you for reporting this bug. We will make it our priority to review this report.
-
Ext JS Premium User
[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
-
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.
-
Ext JS Premium User
How should we tell the form it should not consider the checkbox for its dirty state then?
Florent
-
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.
-
Ext JS Premium User
Well, that's a hack. `isFormField` is a readonly property normally.
Florent