Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions common/changes/modal-bug-fix_2017-05-02-17-16.json
Original file line number Diff line number Diff line change
@@ -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"
}
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export class Modal extends BaseComponent<IModalProps, IDialogState> {
}
}

public componentDidUpdate(prevState: IDialogState, prevProps: IModalProps) {
public componentDidUpdate(prevProps: IModalProps, prevState: IDialogState) {
if (!prevProps.isOpen && !prevState.isVisible) {
this.setState({
isVisible: true
Expand Down