Browse Source

Merge pull request #663 from HugoDF/cleanup-inline-ordering

remove unecessary directive ordering clause
Caleb Porzio 5 years ago
parent
commit
a7d32910b6
2 changed files with 1 additions and 10 deletions
  1. 1 1
      package-lock.json
  2. 0 9
      src/component.js

+ 1 - 1
package-lock.json

@@ -1,6 +1,6 @@
 {
     "name": "alpinejs",
-    "version": "2.4.1",
+    "version": "2.5.0",
     "lockfileVersion": 1,
     "requires": true,
     "dependencies": {

+ 0 - 9
src/component.js

@@ -256,15 +256,6 @@ export default class Component {
 
     resolveBoundAttributes(el, initialUpdate = false, extraVars) {
         let attrs = getXAttrs(el, this)
-        if (el.type !== undefined && el.type === 'radio') {
-            // If there's an x-model on a radio input, move it to end of attribute list
-            // to ensure that x-bind:value (if present) is processed first.
-            const modelIdx = attrs.findIndex((attr) => attr.type === 'model')
-            if (modelIdx > -1) {
-                attrs.push(attrs.splice(modelIdx, 1)[0])
-            }
-        }
-
         attrs.forEach(({ type, value, modifiers, expression }) => {
             switch (type) {
                 case 'model':