We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3490b41 commit cd4e9b3Copy full SHA for cd4e9b3
resources/js/components/inputs/relationship/RelationshipInput.vue
@@ -201,6 +201,13 @@ export default {
201
itemData(data, olddata) {
202
if (this.initializing) return;
203
this.$emit('item-data-updated', data);
204
+ },
205
+
206
+ value(value) {
207
+ // If all the values already have their data stored, then don't bother fetching it again.
208
+ if (value.every(id => this.data.map(item => item.id).includes(id))) return;
209
210
+ this.getDataForSelections(value);
211
}
212
213
},
0 commit comments