0👍
✅
The height
CSS property must be either:
- a
<length>
value with length units (for non-zero values); e.g.,200px
or:
- a
<percentage>
value; e.g.,100%
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';
Source:stackexchange.com