Quellcode durchsuchen

Fix x-show requestAnimationFrame latency bug (#2076)

Caleb Porzio vor 3 Jahren
Ursprung
Commit
6c85a4a13e
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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) {
-    let clickAwayCompatibleShow = () => requestAnimationFrame(show)
+    let clickAwayCompatibleShow = show
 
     if (value) {
         el._x_transition