1
0
Caleb Porzio 3 жил өмнө
parent
commit
f5d2857a88

+ 2 - 2
packages/alpinejs/src/interceptor.js

@@ -6,8 +6,8 @@ export function initInterceptors(data) {
 
     let recurse = (obj, basePath = '') => {
         Object.entries(Object.getOwnPropertyDescriptors(obj)).forEach(([key, { value, enumerable }]) => {
-            if (enumerable === false) return
-            if (value === undefined) return
+            // Skip getters.
+            if (enumerable === false || value === undefined) return
 
             let path = basePath === '' ? key : `${basePath}.${key}`