Skip to content

Commit

Permalink
fix(ui): modal with backdrop update functionality fix
Browse files Browse the repository at this point in the history
  • Loading branch information
32penkin authored Sep 17, 2019
1 parent 4de7c9f commit 37a0090
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/framework/ui/modal/modal.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,8 @@ export class Modal extends React.Component<ModalProps> {
if (prevProps.visible !== this.props.visible) {
this.handleVisibility(this.props);
} else if (prevProps.visible && this.props.visible) {
ModalService.update(this.id, this.props.children);
const element: React.ReactElement = this.renderModal();
ModalService.update(this.id, element.props.children);
}
}

Expand Down

0 comments on commit 37a0090

Please sign in to comment.