File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -94,10 +94,20 @@ p.enter = function (op, cb) {
9494 */
9595
9696p . enterNextTick = function ( ) {
97+
98+ // Importnatn hack:
99+ // in Chrome, if a just-entered element is applied the
100+ // leave class while its interpolated property still has
101+ // a very small value (within one frame), Chrome will
102+ // skip the leave transition entirely and not firing the
103+ // transtionend event. Therefore we need to protected
104+ // against such cases using a one-frame timeout.
97105 this . justEntered = true
98- _ . nextTick ( function ( ) {
99- this . justEntered = false
100- } , this )
106+ var self = this
107+ setTimeout ( function ( ) {
108+ self . justEntered = false
109+ } , 17 )
110+
101111 var enterDone = this . enterDone
102112 var type = this . getCssTransitionType ( this . enterClass )
103113 if ( ! this . pendingJsCb ) {
You can’t perform that action at this time.
0 commit comments