Browse Source

Allow components inside modal body to overflow (ie dropdowns)

develop
Juan Cortes Ross 6 years ago
parent
commit
b93f48064a
No known key found for this signature in database GPG Key ID: 34A99C03E9455EB8
  1. 3
      src/components/SettingsPage/PasswordModal.js
  2. 2
      src/components/base/Modal/ModalContent.js

3
src/components/SettingsPage/PasswordModal.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)
}
}

2
src/components/base/Modal/ModalContent.js

@ -39,7 +39,7 @@ class ModalContent extends PureComponent<{
const contentStyle = {
...CONTENT_STYLE,
overflow: noScroll ? 'visible' : 'auto',
overflow: noScroll ? 'visible' : 'inherit',
}
return (

Loading…
Cancel
Save