Project

General

Profile

Actions

Defect #2190

closed

Read only on form doesn't work properly - AbstractFrom

Added by Vít Švanda about 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Vít Švanda
Category:
Feedback
Target version:
Start date:
04/06/2020
Due date:
% Done:

100%

Estimated time:
Affected versions:
Owner:

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 IdStory Identity Manager - Task #2105: Dynamic form for identitiesClosedRadek Tomiška03/09/2020

Actions
Actions #1

Updated by Vít Švanda about 4 years 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);
        });
      }
Actions #2

Updated by Vít Švanda about 4 years ago

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

Updated by Vít Švanda almost 4 years 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

Actions #4

Updated by Radek Tomiška almost 4 years 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!

Actions

Also available in: Atom PDF