Skip to content

Commit

Permalink
fix(VDataTable): mismatch of nodes when using ssr (#8508)
Browse files Browse the repository at this point in the history
* fix(VDataTable): mismatch of nodes when using ssr

closes #7410

* chore(VDataTable): update comment
  • Loading branch information
nekosaur authored and johnleider committed Aug 15, 2019
1 parent 5f33175 commit 82a369c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/vuetify/src/components/VDataTable/VDataTable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ export default VDataIterator.extend({
}
},
isMobile (): boolean {
// Guard against SSR render
// https://github.com/vuetifyjs/vuetify/issues/7410
if (this.$vuetify.breakpoint.width === 0) return false

return this.$vuetify.breakpoint.width < this.mobileBreakpoint
},
columnSorters (): Record<string, compareFn> {
Expand Down

0 comments on commit 82a369c

Please sign in to comment.