Skip to content

Commit

Permalink
fix(VContainer): propagate id
Browse files Browse the repository at this point in the history
fixes #7919
  • Loading branch information
johnleider committed Jul 22, 2019
1 parent 122708b commit 4d575f8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/vuetify/src/components/VGrid/VContainer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export default Grid('container').extend({
name: 'v-container',
functional: true,
props: {
id: String,
tag: {
type: String,
default: 'div',
Expand Down Expand Up @@ -42,6 +43,11 @@ export default Grid('container').extend({
})
}

if (props.id) {
data.domProps = data.domProps || {}
data.domProps.id = props.id
}

return h(
props.tag,
mergeData(data, {
Expand Down

0 comments on commit 4d575f8

Please sign in to comment.