Skip to content

Commit

Permalink
fix(app): Wrap runscreen modals in portal (#2308)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kadee80 authored Sep 18, 2018
1 parent 02a404b commit aefad0a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/src/components/RunLog/CommandList.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import cx from 'classnames'

import {SpinnerModal} from '@opentrons/components'
import SessionAlert from './SessionAlert'
import {Portal} from '../portal'

import styles from './styles.css'

Expand Down Expand Up @@ -64,7 +65,9 @@ export default class CommandList extends Component {
return (
<div className={styles.run_page}>
{showSpinner && (
<SpinnerModal />
<Portal>
<SpinnerModal />
</Portal>
)}
{!showSpinner && (
<SessionAlert {...this.props} className={styles.alert} />
Expand Down

0 comments on commit aefad0a

Please sign in to comment.