diff --git a/src/client/components/media-list.vue b/src/client/components/media-list.vue index ce266acd20..36fbb4bd06 100644 --- a/src/client/components/media-list.vue +++ b/src/client/components/media-list.vue @@ -32,8 +32,6 @@ export default defineComponent({ raw: { default: false }, - // specify the parent element - parentElement: {} }, data() { return { @@ -66,7 +64,7 @@ export default defineComponent({ if (this.$refs.gridOuter) { let height = 287; - const parent = this.parentElement || this.$parent.$el; + const parent = this.$parent.$el; if (this.$refs.gridOuter.clientHeight) { height = this.$refs.gridOuter.clientHeight; @@ -81,11 +79,6 @@ export default defineComponent({ }); } }, - watch: { - parentElement() { - this.size(); - } - } }); diff --git a/src/client/components/note.vue b/src/client/components/note.vue index 4e31aec12e..609098f82c 100644 --- a/src/client/components/note.vue +++ b/src/client/components/note.vue @@ -41,7 +41,7 @@