Closed HagnMarkus closed 1 year ago
Have provided a fix. Kindly check and confirm if it resolves the issue and will tag a new release.
Now, when you set disabled = true for ActiveForm and disabled = false for ActiveField, it will enable the ActiveField in the disabled Form. Is this right and so wanted?
By the way: My problem is solved.
Now, when you set disabled = true for ActiveForm and disabled = false for ActiveField, it will enable the ActiveField in the disabled Form. Is this right and so wanted?
By the way: My problem is solved.
No - with this fix, if the ActiveField disabled
or readonly
option is set (whether true
or false
), it will override the ActiveForm setting. Can you confirm if this works as intended?
Yes, for me it is fine now!
But the question was in general: Does it make sense to have an active field in a disabled form? But this is more a matter of opinion. ;)
Yes, for me it is fine now!
But the question was in general: Does it make sense to have an active field in a disabled form? But this is more a matter of opinion. ;)
It can help developers to program dynamic flags for disabled
or readonly
based on their use case... like having only a checkbox enabled (at ActiveField) while all other fields are disabled (in form) - or vice versa.
Thanks! I think you can tag a new release.
Version 1.6.3
When disabled is set (true or false) in ActiveForm it overwrites always disabled in ActiveField. So it is not possible to set a Field to disabled in an enabled Form.
Code in ActiveField:
Code in 1.6.2