+
{{ showFullDescription ? 'Read less' : 'Read more' }}
{{ showFullDescription ? 'expand_less' : 'expand_more' }}
@@ -722,8 +722,12 @@ export default {
}
},
checkDescriptionClamped() {
- if (!this.$refs.description || this.showFullDescription) return
- this.descriptionClamped = this.$refs.description.scrollHeight > this.$refs.description.clientHeight
+ if (this.showFullDescription) return
+ if (!this.$refs.description) {
+ this.descriptionClamped = false
+ } else {
+ this.descriptionClamped = this.$refs.description.scrollHeight > this.$refs.description.clientHeight
+ }
},
windowResized() {
this.windowWidth = window.innerWidth