Skip to content

Commit

Permalink
fix(vuetify): add patch for expandable panels with v-model
Browse files Browse the repository at this point in the history
Dynamic number of panels with v-model='panels' has an error
when removing a panel.
  • Loading branch information
PaulHax committed Jul 15, 2024
1 parent db34eb5 commit 89c9711
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions patches/vuetify+3.6.9.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/node_modules/vuetify/lib/composables/group.mjs b/node_modules/vuetify/lib/composables/group.mjs
index 118b569..ddb8a6c 100644
--- a/node_modules/vuetify/lib/composables/group.mjs
+++ b/node_modules/vuetify/lib/composables/group.mjs
@@ -202,7 +202,7 @@ function getItemIndex(items, value) {
function getIds(items, modelValue) {
const ids = [];
modelValue.forEach(value => {
- const item = items.find(item => deepEqual(value, item.value));
+ const item = items.find(item => deepEqual(value, item?.value));
const itemByIndex = items[value];
if (item?.value != null) {
ids.push(item.id);

0 comments on commit 89c9711

Please sign in to comment.