Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Dillingham committed Feb 10, 2019
1 parent 1be2a34 commit 2fd2a70
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dist/js/field.js

Large diffs are not rendered by default.

9 changes: 3 additions & 6 deletions resources/js/components/FormField.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<template>
<default-field :field="field" :errors="errors">
<template slot="field">
<select v-model="selected" placeholder="Select" class="w-full form-control form-select" :disabled="disabled">
<select v-model="selected" class="w-full form-control form-select" :disabled="disabled">
<option :value="null">Select a {{ field.name }}</option>
<option
:key="option.key"
:value="option.key"
Expand All @@ -26,8 +27,7 @@ export default {
options: [],
loaded: false,
selected: null,
parentValue: null,
placeholder: null,
parentValue: null
}
},
Expand Down Expand Up @@ -82,9 +82,6 @@ export default {
.then(response => {
this.loaded = true;
this.options = response.data;
if(this.options.length > 0) {
this.selected = this.options[0].key
}
})
}
},
Expand Down

0 comments on commit 2fd2a70

Please sign in to comment.