File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed
Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ export function getOpenCount() {
1717
1818// https://github.com/ant-design/ant-design/issues/19340
1919// https://github.com/ant-design/ant-design/issues/19332
20- let cacheOverflow = { } ;
20+ let cacheOverflow : React . CSSProperties = { } ;
2121
2222const getParent = ( getContainer : GetContainer ) => {
2323 if ( ! supportDom ) {
Original file line number Diff line number Diff line change @@ -68,11 +68,12 @@ ${heightStyle}
6868
6969 // Measure. Get fallback style if provided
7070 const scrollWidth =
71- ele && fallbackWidth && ! isNaN ( fallbackWidth )
71+ ele && fallbackWidth && ! Number . isNaN ( fallbackWidth )
7272 ? fallbackWidth
7373 : measureEle . offsetWidth - measureEle . clientWidth ;
74+
7475 const scrollHeight =
75- ele && fallbackHeight && ! isNaN ( fallbackHeight )
76+ ele && fallbackHeight && ! Number . isNaN ( fallbackHeight )
7677 ? fallbackHeight
7778 : measureEle . offsetHeight - measureEle . clientHeight ;
7879
Original file line number Diff line number Diff line change @@ -2,10 +2,11 @@ import isMobile from 'is-mobile';
22
33let cached : boolean ;
44
5- export default ( ) => {
5+ const getIsMobile = ( ) => {
66 if ( typeof cached === 'undefined' ) {
77 cached = isMobile ( ) ;
88 }
9-
109 return cached ;
1110} ;
11+
12+ export default getIsMobile ;
You can’t perform that action at this time.
0 commit comments