From 6bad60bd1937faa7800df5213d735212cc80e3b3 Mon Sep 17 00:00:00 2001 From: Mile Divovic Date: Thu, 25 Jul 2024 08:30:39 +0200 Subject: [PATCH] Fix bug where scrolling a property into view before the object loaded while editing would cause the property to not function --- src/lode/components/Property.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/lode/components/Property.vue b/src/lode/components/Property.vue index b462c96d0..c41611801 100644 --- a/src/lode/components/Property.vue +++ b/src/lode/components/Property.vue @@ -477,7 +477,8 @@ export default { removePropertyConfirmModal: false, propertyToRemove: null, expandedValue: [], - copiedItem: null + copiedItem: null, + isVisible: false }; }, components: { @@ -1136,6 +1137,7 @@ export default { this.expandedValue = expanded; }, visibilityChanged: function(isVisible, entry) { + this.isVisible = isVisible; if (isVisible) { this.getExpandedValue(); } @@ -1155,6 +1157,11 @@ export default { }, checkedOptions: function() { this.save(); + }, + expandedThing: function(newval, oldval) { + if (newval['@id'] !== oldval['@id'] && this.isVisible) { + this.getExpandedValue(); + } } } };