File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed
Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -245,13 +245,18 @@ p.callHookWithCb = function (type) {
245245 */
246246
247247p . getCssTransitionType = function ( className ) {
248- // skip CSS transitions if page is not visible -
249- // this solves the issue of transitionend events not
250- // firing until the page is visible again.
251- // pageVisibility API is supported in IE10+, same as
252- // CSS transitions.
253248 /* istanbul ignore if */
254- if ( ! transitionEndEvent || document . hidden ) {
249+ if (
250+ ! transitionEndEvent ||
251+ // skip CSS transitions if page is not visible -
252+ // this solves the issue of transitionend events not
253+ // firing until the page is visible again.
254+ // pageVisibility API is supported in IE10+, same as
255+ // CSS transitions.
256+ document . hidden ||
257+ // explicit js-only transition
258+ ( this . hooks && this . hooks . css === false )
259+ ) {
255260 return
256261 }
257262 var type = this . typeCache [ className ]
You can’t perform that action at this time.
0 commit comments