File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Expand file tree Collapse file tree 4 files changed +4
-4
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 @@ -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