File tree 5 files changed +12
-9
lines changed 5 files changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import Button from '../../common/Button';
6
6
import IconButton from './IconButton' ;
7
7
8
8
const FloatingContainer = styled . div `
9
- position: absolute ;
9
+ position: fixed ;
10
10
right: ${ remSize ( 16 ) } ;
11
11
top: ${ remSize ( 80 ) } ;
12
12
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ const SidebarWrapper = styled.div`
12
12
height: 100%;
13
13
width: ${ remSize ( 180 ) } ;
14
14
15
- position: absolute ;
15
+ position: fixed ;
16
16
z-index: 2;
17
17
left: 0;
18
18
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import styled from 'styled-components';
3
3
import { useModalBehavior } from '../utils/custom-hooks' ;
4
4
5
5
const BackgroundOverlay = styled . div `
6
- position: absolute ;
6
+ position: fixed ;
7
7
z-index: 2;
8
8
width: 100% !important;
9
9
height: 100% !important;
Original file line number Diff line number Diff line change @@ -18,7 +18,9 @@ class App extends React.Component {
18
18
19
19
componentWillReceiveProps ( nextProps ) {
20
20
const locationWillChange = nextProps . location !== this . props . location ;
21
- const shouldSkipRemembering = nextProps . location . state && nextProps . location . state . skipSavingPath === true ;
21
+ const shouldSkipRemembering =
22
+ nextProps . location . state &&
23
+ nextProps . location . state . skipSavingPath === true ;
22
24
23
25
if ( locationWillChange && ! shouldSkipRemembering ) {
24
26
this . props . setPreviousPath ( this . props . location . pathname ) ;
@@ -34,9 +36,10 @@ class App extends React.Component {
34
36
render ( ) {
35
37
return (
36
38
< div className = "app" >
37
- < div style = { { display : 'none' } } >
38
- { this . state . isMounted && ! window . devToolsExtension && getConfig ( 'NODE_ENV' ) === 'development' && < DevTools /> }
39
- </ div >
39
+ { false &&
40
+ this . state . isMounted &&
41
+ ! window . devToolsExtension &&
42
+ getConfig ( 'NODE_ENV' ) === 'development' && < DevTools /> }
40
43
{ this . props . children }
41
44
</ div >
42
45
) ;
@@ -57,7 +60,7 @@ App.propTypes = {
57
60
58
61
App . defaultProps = {
59
62
children : null ,
60
- theme : 'light'
63
+ theme : 'light' ,
61
64
} ;
62
65
63
66
const mapStateToProps = state => ( {
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ export const useModalBehavior = (hideOverlay) => {
28
28
29
29
30
30
const handleClickOutside = ( { target } ) => {
31
- if ( ref && ref . current && ! ref . current . contains ( target ) ) {
31
+ if ( ref && ref . current && ! ( ref . current . contains && ref . current . contains ( target ) ) ) {
32
32
hide ( ) ;
33
33
}
34
34
} ;
You can’t perform that action at this time.
0 commit comments