Selaa lähdekoodia

Stop ignoring sub-object data bindings

Caleb Porzio 3 vuotta sitten
vanhempi
commit
8d4f1266b2
1 muutettua tiedostoa jossa 0 lisäystä ja 6 poistoa
  1. 0 6
      packages/alpinejs/src/directives/x-bind.js

+ 0 - 6
packages/alpinejs/src/directives/x-bind.js

@@ -31,12 +31,6 @@ function applyBindingsObject(el, expression, original, effect) {
         getBindings(bindings => {
             let attributes = Object.entries(bindings).map(([name, value]) => ({ name, value }))
 
-            // Ignore nested objects in bindings, as they are generally used for
-            // namespaced sub-bindings like: "Dropdown.Button".
-            attributes = attributes.filter((attr) => {
-                return ! (typeof attr.value === 'object' && ! Array.isArray(attr.value) && attr.value !== null)
-            })
-
             let staticAttributes = attributesOnly(attributes)
             
             // Handle binding normal HTML attributes (non-Alpine directives).