Skip to content

Commit

Permalink
close #710: Set defaults for __field inject (#1003)
Browse files Browse the repository at this point in the history
* Set defaults for __field inject

* Update QInputFrame.vue

* Update QOptionGroup.vue
  • Loading branch information
pdanpdan authored and rstoenescu committed Oct 14, 2017
1 parent 0bb4ead commit c4b36d3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/components/input-frame/QInputFrame.vue
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ export default {
field: {}
}
},
inject: ['__field'],
inject: {
__field: { default: null }
},
computed: {
label () {
return this.stackLabel || this.floatLabel
Expand Down
4 changes: 3 additions & 1 deletion src/components/option-group/QOptionGroup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ export default {
inline: Boolean,
disable: Boolean
},
inject: ['__field'],
inject: {
__field: { default: null }
},
computed: {
component () {
return `q-${this.type}`
Expand Down

0 comments on commit c4b36d3

Please sign in to comment.