Skip to content

Commit

Permalink
Fix bug where scrolling a property into view before the object loaded…
Browse files Browse the repository at this point in the history
… while editing would cause the property to not function
  • Loading branch information
miledivovic committed Jul 25, 2024
1 parent 96be766 commit 6bad60b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/lode/components/Property.vue
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,8 @@ export default {
removePropertyConfirmModal: false,
propertyToRemove: null,
expandedValue: [],
copiedItem: null
copiedItem: null,
isVisible: false
};
},
components: {
Expand Down Expand Up @@ -1136,6 +1137,7 @@ export default {
this.expandedValue = expanded;
},
visibilityChanged: function(isVisible, entry) {
this.isVisible = isVisible;
if (isVisible) {
this.getExpandedValue();
}
Expand All @@ -1155,6 +1157,11 @@ export default {
},
checkedOptions: function() {
this.save();
},
expandedThing: function(newval, oldval) {
if (newval['@id'] !== oldval['@id'] && this.isVisible) {
this.getExpandedValue();
}
}
}
};
Expand Down

0 comments on commit 6bad60b

Please sign in to comment.