Vue Multiselect is a versatile, dependency-free multiselect and tagging component designed for Vue 3 applications. Currently at version 3.5.0, it offers a wide range of features including single and multiple selection, tagging capabilities, filtering, search with suggestions, and asynchronous option loading. The library maintains a steady release cadence with frequent bug fixes and minor feature enhancements, as seen in its recent 3.x releases. A key differentiator is its minimal footprint and explicit lack of external runtime dependencies, making it a lightweight choice. It supports Vue's `v-model`, Vuex integration, and fully configurable props for extensive customization. The component ships with TypeScript types, ensuring a robust developer experience for TypeScript users.
npm install vue-multiselectVerified import paths — ran on the pinned version, not inferred.
This example demonstrates how to set up Vue Multiselect with multiple selection, tagging, and options managed using Vue 3's Composition API.
Review and update your CSS selectors for the dropdown to account for its new position, typically as a direct child of `body`. For more control, set the `teleport` prop to `false` in v3.3.1+ to revert to pre-v3.3.0 behavior, or use the `teleportTarget` prop to specify a custom target.
If experiencing issues with Vite, ensure your `@vitejs/plugin-vue` version is compatible and does not inadvertently disable the Options API. Refer to the `vue-multiselect` documentation or `@vitejs/plugin-vue` changelog for known incompatibilities and recommended versions. You might need to downgrade `@vitejs/plugin-vue`.
Carefully review the migration guide from Vue 2 to Vue 3 for your application, and consult the `vue-multiselect` v3 pre-release notes for any specific `vue-multiselect` related adjustments.
If previous CSS broke in v3.3.0, setting the `teleport` prop to `false` (which is the default in v3.3.1+) or targeting a specific `teleportTarget` prop can restore expected behavior and styling.
This was addressed in v2.1.8 and subsequently in v3.0.0-beta.3 and later stable v3 releases. Ensure you are on a recent stable version of `vue-multiselect` (v3.0.0 or higher) to avoid this issue.
Update your CSS to target the multiselect dropdown element correctly, considering it might now be a direct child of `body`. Alternatively, set the `teleport` prop to `false` (available since v3.3.1) or specify a custom `teleportTarget` to keep the dropdown within the component's original DOM structure.
No dependency data recorded yet.