Defect #2190
closed
Read only on form doesn't work properly - AbstractFrom
Added by Vít Švanda over 4 years ago.
Updated over 4 years ago.
Description
AbstractForm incorrectly show change of readOnly. This occures only if components of a form are rendered dynamicaly.
Workaround: Use readOnly on all componets in the form and remove direct readOnly property form the form.
- Status changed from New to In Progress
- % Done changed from 0 to 10
By my investigation is problem nearby here (sort and setStat(keys)):
if (!(_.isEqual(componentsKeys ? componentsKeys.sort() : [], newComponentKeys.sort()))) {
this.setState({componentsKeys: newComponentKeys}, () => {
this.setData(nextProps.data);
});
}
- Related to Task #2105: Dynamic form for identities added
- Status changed from In Progress to Needs feedback
- Assignee changed from Vít Švanda to Radek Tomiška
- % Done changed from 10 to 90
- Status changed from Needs feedback to Closed
- Assignee changed from Radek Tomiška to Vít Švanda
- % Done changed from 90 to 100
It's awesome, it work in my UC too, thx!
Also available in: Atom
PDF