Skip to content

Commit

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

Large diffs are not rendered by default.

11 changes: 6 additions & 5 deletions resources/js/components/FormField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
@click="addItem"
v-html="field.createButtonValue"
v-if="field.hideCreateButton == false"
class="btn btn-default btn-primary ml-3 cursor-pointer"
class="btn btn-default btn-primary ml-3 cursor-pointer font-sans"
/>
</div>
<ul ref="novaitemslist" :style="maxHeight" v-if="items.length" class="nova-items-field-input-items list-reset border border-40 py-2">
Expand All @@ -40,7 +40,8 @@
>
<span
@click="removeItem(index)"
class="ml-4 mr-2 font-thin text-2xl cursor-pointer hover:font-normal"
style="font-size: 32px;"
class="ml-4 mr-2 font-thin cursor-pointer hover:font-normal"
v-html="field.deleteButtonValue"
/>
</div>
Expand Down Expand Up @@ -116,13 +117,13 @@ export default {
setInitialValue() {
this.value = this.field.value || '';
this.items = this.field.value;
this.value = this.field.value || [];
this.items = this.field.value || [];
},
fill(formData) {
formData.append(this.field.attribute, this.value || '')
formData.append(this.field.attribute, this.value || [])
},
addItem() {
Expand Down

0 comments on commit 98a4aae

Please sign in to comment.