File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
src/platforms/web/runtime/directives
test/unit/features/transition Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ export default {
14
14
bind ( el : any , { value } : VNodeDirective, vnode : VNodeWithData ) {
15
15
vnode = locateNode ( vnode )
16
16
const transition = vnode . data && vnode . data . transition
17
- if ( value && transition && transition . appear && ! isIE9 ) {
17
+ if ( value && transition && ! isIE9 ) {
18
18
enter ( vnode )
19
19
}
20
20
const originalDisplay = el . style . display === 'none' ? '' : el . style . display
Original file line number Diff line number Diff line change @@ -504,6 +504,7 @@ if (!isIE9) {
504
504
// should not apply transition on initial render by default
505
505
expect ( vm . $el . textContent ) . toBe ( 'foo' )
506
506
expect ( vm . $el . children [ 0 ] . style . display ) . toBe ( '' )
507
+ expect ( vm . $el . children [ 0 ] . className ) . toBe ( 'test' )
507
508
vm . ok = false
508
509
waitForUpdate ( ( ) => {
509
510
expect ( vm . $el . children [ 0 ] . className ) . toBe ( 'test test-leave test-leave-active' )
You can’t perform that action at this time.
0 commit comments