Project

General

Profile

Defect #2190

Read only on form doesn't work properly - AbstractFrom

Added by Vít Švanda 8 months ago. Updated 7 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Feedback
Target version:
Start date:
04/06/2020
Due date:
% Done:

100%

Estimated time:
Affected versions:
Milestones:

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.


Related issues

Related to CzechIdM - Task #2105: Dynamic form for identitiesClosed03/09/2020

History

#1 Updated by Vít Švanda 8 months ago

  • 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);
        });
      }

#2 Updated by Vít Švanda 8 months ago

  • Related to Task #2105: Dynamic form for identities added

#3 Updated by Vít Švanda 7 months ago

  • Status changed from In Progress to Needs feedback
  • Assignee changed from Vít Švanda to Radek Tomiška
  • % Done changed from 10 to 90

Fixed. Problem was in a sort of array. Immutuable copy solved the problem.

Commit: https://github.com/bcvsolutions/CzechIdMng/commit/bdc889f9237666301bea2e1add08433a9a98560f

#4 Updated by Radek Tomiška 7 months ago

  • 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

Go to top