mirror of
https://github.com/tenrok/vue-json-viewer.git
synced 2026-06-08 17:22:32 +03:00
Update json-viewer.vue
Fix for handling when component was removed. Refs could be null
This commit is contained in:
@@ -123,6 +123,7 @@ export default {
|
||||
},
|
||||
debResized() {
|
||||
this.$nextTick(() => {
|
||||
if (!this.$refs.jsonBox) return;
|
||||
if (this.$refs.jsonBox.$el.clientHeight >= 250) {
|
||||
this.expandableCode = true
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user