Skip to content

Commit

Permalink
Fix Game versions input not showing (#2358)
Browse files Browse the repository at this point in the history
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!
  • Loading branch information
brawaru committed Sep 3, 2024
1 parent 81b0922 commit 50734af
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/frontend/src/pages/[type]/[id]/version/[version].vue
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,7 @@
:show-labels="false"
:limit="6"
:hide-selected="true"
:custom-label="(version) => version"
placeholder="Choose versions..."
/>
<Checkbox
Expand Down

0 comments on commit 50734af

Please sign in to comment.