Stefan Racic 2 жил өмнө
parent
commit
c978843530
3 өөрчлөгдсөн 4 нэмэгдсэн , 4 устгасан
  1. 1 1
      README.md
  2. 2 2
      package.json
  3. 1 1
      src/index.js

+ 1 - 1
README.md

@@ -1,6 +1,6 @@
 # Alpine JS `x-autoanimate`
 
-Alpine JS wrapper `x-autoanimate` allows you to use [FormKit AutoAnimate](https://auto-animate.formkit.com/) with [AlpineJS](https://alpinejs.dev/)
+Alpine JS plugin `x-autoanimate` allows you to use [FormKit AutoAnimate](https://auto-animate.formkit.com/) with [AlpineJS](https://alpinejs.dev/)
 
 ## Example
 

+ 2 - 2
package.json

@@ -1,7 +1,7 @@
 {
   "name": "alpinejs-autoanimate",
-  "version": "1.0.7",
-  "description": "AlpineJS autoAnimate",
+  "version": "1.0.10",
+  "description": "AlpineJS AutoAnimate",
   "type": "module",
   "keywords": [
     "Alpine",

+ 1 - 1
src/index.js

@@ -2,6 +2,6 @@ import autoAnimate from "@formkit/auto-animate";
 
 export default function (Alpine) {
   Alpine.directive("autoanimate", (el, { expression }, { evaluate }) => {
-    autoAnimate(el, evaluate(expression) || {});
+    autoAnimate(el, (expression && evaluate(expression)) || {});
   });
 }