Browse Source
Allow components inside modal body to overflow (ie dropdowns)
develop
Juan Cortes Ross
6 years ago
No known key found for this signature in database
GPG Key ID: 34A99C03E9455EB8
2 changed files with
2 additions and
3 deletions
-
src/components/SettingsPage/PasswordModal.js
-
src/components/base/Modal/ModalContent.js
|
|
@ -39,8 +39,7 @@ class PasswordModal extends PureComponent<Props, State> { |
|
|
|
|
|
|
|
componentWillReceiveProps(nextProps: Props) { |
|
|
|
if (!nextProps.isOpened) { |
|
|
|
// CLean the state?
|
|
|
|
this.setState(prevState => ({ ...prevState, ...INITIAL_STATE })) |
|
|
|
this.setState(INITIAL_STATE) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -39,7 +39,7 @@ class ModalContent extends PureComponent<{ |
|
|
|
|
|
|
|
const contentStyle = { |
|
|
|
...CONTENT_STYLE, |
|
|
|
overflow: noScroll ? 'visible' : 'auto', |
|
|
|
overflow: noScroll ? 'visible' : 'inherit', |
|
|
|
} |
|
|
|
|
|
|
|
return ( |
|
|
|