Skip to content

Commit

Permalink
fix(VMenu): initial computation of NaN
Browse files Browse the repository at this point in the history
a.offsetLeft isn't defined until it has rendered
  • Loading branch information
johnleider committed Jan 18, 2019
1 parent 2f96d33 commit 7093d3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vuetify/src/mixins/menuable.js
Expand Up @@ -107,7 +107,7 @@ export default Vue.extend({
computedLeft () {
const a = this.dimensions.activator
const c = this.dimensions.content
const activatorLeft = this.isAttached ? a.offsetLeft : a.left
const activatorLeft = (this.isAttached ? a.offsetLeft : a.left) || 0
const minWidth = Math.max(a.width, c.width)
let left = 0

Expand Down

0 comments on commit 7093d3d

Please sign in to comment.