[Vuejs]-Vuetify v-bind inline style value not updating

0👍

The height CSS property must be either:

  • a <length> value with length units (for non-zero values); e.g., 200px

or:

A number value is invalid. The value is in the form of a string, so your code should append 'px' to the calculated number:

this.imageHeight = this.$refs["desktop-image"].offsetHeight + 80 + 'px';

demo

Leave a comment