Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

Commit

Permalink
Merge pull request #163 from alvarosaburido/feature/form-not-rendered…
Browse files Browse the repository at this point in the history
…-if-fieldorder-prop-is-empty

fix(form): add missing condition to fieldOrder sorting
  • Loading branch information
alvarosabu authored Oct 5, 2020
2 parents b4caad7 + 2ebcac4 commit 1f058cc
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 46 deletions.
88 changes: 44 additions & 44 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/components/dynamic-form/DynamicForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,8 @@ export default defineComponent({
props.form.fieldOrder.indexOf(a.name) -
props.form.fieldOrder.indexOf(b.name),
);
} else {
controls.value = controlArray;
}
}
Expand Down
4 changes: 2 additions & 2 deletions vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ module.exports = {
pages: {
index: {
title: 'Vue Dynamic Forms',
// entry: 'dev/typescript/main.ts', // Typescript Demo
entry: 'dev/vue/main.js',
entry: 'dev/typescript/main.ts', // Typescript Demo
// entry: 'dev/vue/main.js',
template: 'public/index.html',
filename: 'index.html',
},
Expand Down

0 comments on commit 1f058cc

Please sign in to comment.