Skip to content

Commit f25337d

Browse files
committed
fix of #615
1 parent da5e867 commit f25337d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/controls/iFrameDialog/IFrameDialog.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,14 @@ export class IFrameDialog extends React.Component<IFrameDialogProps, IFrameDialo
9494
this.setDialogStyling();
9595
}
9696

97+
public componentWillReceiveProps(nextProps: IFrameDialogProps) {
98+
if (nextProps.hidden && nextProps.hidden !== this.props.hidden) {
99+
this.setState({
100+
isStylingSet: false
101+
});
102+
}
103+
}
104+
97105
public componentDidUpdate(prevProps: IFrameDialogProps, prevState: IFrameDialogState): void {
98106
this.setDialogStyling();
99107
}

0 commit comments

Comments
 (0)