diff --git a/common/changes/modal-bug-fix_2017-05-02-17-16.json b/common/changes/modal-bug-fix_2017-05-02-17-16.json new file mode 100644 index 00000000000000..f7b8f6d01a5474 --- /dev/null +++ b/common/changes/modal-bug-fix_2017-05-02-17-16.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "office-ui-fabric-react", + "comment": "Modal: Fixed bug where props and state were passed in reversed order", + "type": "patch" + } + ], + "email": "micahgodbolt@gmail.com" +} \ No newline at end of file diff --git a/packages/office-ui-fabric-react/src/components/Modal/Modal.tsx b/packages/office-ui-fabric-react/src/components/Modal/Modal.tsx index 393980aded3dc1..e706c3ca09818f 100644 --- a/packages/office-ui-fabric-react/src/components/Modal/Modal.tsx +++ b/packages/office-ui-fabric-react/src/components/Modal/Modal.tsx @@ -71,7 +71,7 @@ export class Modal extends BaseComponent { } } - public componentDidUpdate(prevState: IDialogState, prevProps: IModalProps) { + public componentDidUpdate(prevProps: IModalProps, prevState: IDialogState) { if (!prevProps.isOpen && !prevState.isVisible) { this.setState({ isVisible: true