mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-20 22:03:03 +08:00
Fix issue with text value rendering [SCI-9583]
This commit is contained in:
parent
2850135e96
commit
0e3c7eaf26
1 changed files with 4 additions and 2 deletions
|
@ -46,8 +46,10 @@ export default {
|
|||
},
|
||||
mounted() {
|
||||
this.$nextTick(() => {
|
||||
const textHeight = this.$refs.textRef.scrollHeight
|
||||
this.expandable = textHeight > 60 // 60px
|
||||
if (this.$refs.textRef) {
|
||||
const textHeight = this.$refs.textRef.scrollHeight
|
||||
this.expandable = textHeight > 60 // 60px
|
||||
}
|
||||
})
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue