File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
src/components/ReactSlider Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -964,7 +964,7 @@ class ReactSlider extends React.Component {
964
964
const style = {
965
965
position : 'absolute' ,
966
966
touchAction : 'none' ,
967
- willChange : this . state . index >= 0 ? this . posMinKey ( ) : '' ,
967
+ willChange : this . state . index >= 0 ? this . posMinKey ( ) : undefined ,
968
968
zIndex : this . state . zIndices . indexOf ( i ) + 1 ,
969
969
} ;
970
970
style [ this . posMinKey ( ) ] = `${ offset } px` ;
@@ -974,7 +974,8 @@ class ReactSlider extends React.Component {
974
974
buildTrackStyle ( min , max ) {
975
975
const obj = {
976
976
position : 'absolute' ,
977
- willChange : this . state . index >= 0 ? `${ this . posMinKey ( ) } ,${ this . posMaxKey ( ) } ` : '' ,
977
+ willChange :
978
+ this . state . index >= 0 ? `${ this . posMinKey ( ) } ,${ this . posMaxKey ( ) } ` : undefined ,
978
979
} ;
979
980
obj [ this . posMinKey ( ) ] = min ;
980
981
obj [ this . posMaxKey ( ) ] = max ;
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ exports[`<ReactSlider> can render 1`] = `
18
18
" left" : 0 ,
19
19
" position" : " absolute" ,
20
20
" right" : 0 ,
21
- " willChange" : " " ,
21
+ " willChange" : undefined ,
22
22
}
23
23
}
24
24
/>
@@ -29,7 +29,7 @@ exports[`<ReactSlider> can render 1`] = `
29
29
" left" : 0 ,
30
30
" position" : " absolute" ,
31
31
" right" : 0 ,
32
- " willChange" : " " ,
32
+ " willChange" : undefined ,
33
33
}
34
34
}
35
35
/>
@@ -48,7 +48,7 @@ exports[`<ReactSlider> can render 1`] = `
48
48
" left" : " 0px" ,
49
49
" position" : " absolute" ,
50
50
" touchAction" : " none" ,
51
- " willChange" : " " ,
51
+ " willChange" : undefined ,
52
52
" zIndex" : 1 ,
53
53
}
54
54
}
You can’t perform that action at this time.
0 commit comments