File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -255,7 +255,7 @@ const getSizesFallback = userAgent => {
255
255
256
256
return {
257
257
fallbackWidth: 1280 ,
258
- fallbackHeiht : 700 ,
258
+ fallbackHeight : 700 ,
259
259
}
260
260
}
261
261
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import getDisplayName from './utils/getDisplayName'
7
7
import shallowDiff from './utils/shallowDiff'
8
8
import getWindowSizes from './utils/getWindowSizes'
9
9
10
- import contextTypes from './contextTypes'
10
+ import contextTypes , { contextKey } from './contextTypes'
11
11
import * as presets from './presets'
12
12
13
13
const withSizes = ( ...mappedSizesToProps ) => WrappedComponent => {
@@ -24,7 +24,8 @@ const withSizes = (...mappedSizesToProps) => WrappedComponent => {
24
24
super ( props , context )
25
25
26
26
this . getWindowSizesWithFallback = ( ) => {
27
- const { fallbackHeight = null , fallbackWidth = null } = this . context
27
+ const config = this . context [ contextKey ] || { }
28
+ const { fallbackHeight = null , fallbackWidth = null } = config
28
29
return getWindowSizes ( { fallbackHeight, fallbackWidth } )
29
30
}
30
31
You can’t perform that action at this time.
0 commit comments