Skip to content

Commit

Permalink
fix(Dialog): fix broken close action
Browse files Browse the repository at this point in the history
  • Loading branch information
ej9x committed Sep 20, 2019
1 parent 43a143b commit dc649e2
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 3 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 1 addition & 2 deletions src/components/Dialog/Dialog.theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ const [DialogTag, themeDialog] = createThemeTag('dialog', {
display: 'flex',
flexDirection: 'column',
justifyContent: 'center',
maxHeight: '90%',
flex: '0 1 90%',
margin: '40px 0',
},
modifiers: {
stretch: {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Modal/Modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class Modal extends PureComponent<ModalProps, ModalState> {
<ModalTag
modifiers={ rest }
tagName="div"
onMouseDown={ this.onModalMouseDown }
onMouseDown={ this.onOverlayMouseDown }
>
{ typeof children === 'function' ? children(rest) : children }
</ModalTag>
Expand Down

0 comments on commit dc649e2

Please sign in to comment.