File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ export default class ReactCSSTransitionReplace extends React.Component {
53
53
transitionLeave : true ,
54
54
overflowHidden : true ,
55
55
notifyLeaving : false ,
56
- component : 'span ' ,
56
+ component : 'div ' ,
57
57
childComponent : 'span' ,
58
58
}
59
59
@@ -254,17 +254,15 @@ export default class ReactCSSTransitionReplace extends React.Component {
254
254
...containerProps
255
255
} = this . props
256
256
257
+ // In edge there is a glitch as the container switches from not positioned
258
+ // to a positioned element at the start of a transition which is solved
259
+ // by applying the position and overflow style rules at all times.
257
260
containerProps . style = {
258
261
...containerProps . style ,
262
+ position : 'relative' ,
259
263
}
260
-
261
- if ( Object . keys ( this . transitioningKeys ) . length ) {
262
- containerProps . style . position = 'relative'
263
- containerProps . style . display = 'block'
264
-
265
- if ( overflowHidden ) {
266
- containerProps . style . overflow = 'hidden'
267
- }
264
+ if ( overflowHidden ) {
265
+ containerProps . style . overflow = 'hidden'
268
266
}
269
267
270
268
if ( height !== null ) {
You can’t perform that action at this time.
0 commit comments