From 50734af6cdf239731a30ff7567f24336f82b40a7 Mon Sep 17 00:00:00 2001 From: Sasha Sorokin <10401817+brawaru@users.noreply.github.com> Date: Tue, 3 Sep 2024 18:44:21 +0200 Subject: [PATCH] Fix Game versions input not showing (#2358) There is a bug in vue-multiselect library where it will default `custom-label` property to raw properies object. Presumably this is a bug that appeared because they ported library to Vue 3 and have not considered that the signature for `default` prop's function has changed. To work around this, we can provide custom `custom-label` property that is just a function that returns the input itself. In other places, where objects are passed, `label` property can be used. In this case the first suggestion applies. DO NOT USE VUE-MULTISELECT WITOUT `LABEL` OR `CUSTOM-LABEL` PROPS! --- apps/frontend/src/pages/[type]/[id]/version/[version].vue | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/frontend/src/pages/[type]/[id]/version/[version].vue b/apps/frontend/src/pages/[type]/[id]/version/[version].vue index 48b02d0bf..dae2fe6ef 100644 --- a/apps/frontend/src/pages/[type]/[id]/version/[version].vue +++ b/apps/frontend/src/pages/[type]/[id]/version/[version].vue @@ -567,6 +567,7 @@ :show-labels="false" :limit="6" :hide-selected="true" + :custom-label="(version) => version" placeholder="Choose versions..." />