Skip to content

Commit

Permalink
[APM] Fix progress indicator (#30649)
Browse files Browse the repository at this point in the history
  • Loading branch information
sorenlouv authored Feb 11, 2019
1 parent e513c6e commit 1a28b5c
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,18 @@
*/

import React from 'react';
import { EuiProgress, EuiDelayHide } from '@elastic/eui';
import { EuiPortal, EuiProgress, EuiDelayHide } from '@elastic/eui';

export default ({ isLoading }) => {
return (
<EuiDelayHide
hide={!isLoading}
minimumDuration={1000}
render={() => <EuiProgress size="xs" position="fixed" />}
render={() => (
<EuiPortal>
<EuiProgress size="xs" position="fixed" />
</EuiPortal>
)}
/>
);
};

0 comments on commit 1a28b5c

Please sign in to comment.