Explorar o código

Fix x-show requestAnimationFrame latency bug (#2076)

Caleb Porzio %!s(int64=3) %!d(string=hai) anos
pai
achega
6c85a4a13e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/alpinejs/src/directives/x-transition.js

+ 1 - 1
packages/alpinejs/src/directives/x-transition.js

@@ -125,7 +125,7 @@ function registerTransitionObject(el, setFunction, defaultValue = {}) {
 }
 }
 
 
 window.Element.prototype._x_toggleAndCascadeWithTransitions = function (el, value, show, hide) {
 window.Element.prototype._x_toggleAndCascadeWithTransitions = function (el, value, show, hide) {
-    let clickAwayCompatibleShow = () => requestAnimationFrame(show)
+    let clickAwayCompatibleShow = show
 
 
     if (value) {
     if (value) {
         el._x_transition
         el._x_transition