2
0
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:
Rasmus Schlünsen
2019-10-17 15:07:23 +02:00
committed by GitHub
parent 6bea813d17
commit b3d4ff6ae0
+1
View File
@@ -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 {