Bug #2261
Bug on FormDialog when it is not remote and is a modal
Start date:
10/15/2016
Due date:
% Done:
0%
Complexity:
Description
If formDialog is not a modal and it is not remote the doc passed throw props is not reinitialized when show is set to false and true again. What is being done by now to pass over this bug is the bellow.
render() { const tbcase = this.props.tbcase; if (!tbcase || !tbcase.id || !tbcase.treatmentPeriod) { return null; } if (!this.state.show) { return null; } return ( <FormDialog schema={schema} doc={this.state.doc} wrapType="modal" modalShow onConfirm={this.confirm} onCancel={this.onClose} /> ); }
Note that when the form should not be displayed it is 'destroyed' from the UI. The only problem that this causes if that the modal doesn't do the fade out effect when is set to false.
History
#1
Updated by Maurício Dos Santos over 8 years ago
- Status changed from New to In Progress
#2
Updated by Maurício Dos Santos over 8 years ago
- Status changed from In Progress to Resolved