Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork174
Open
Description
Describe the bug
The following is an example of using a custom select component for choosing from a pre-defined set of tags:
The example has a bug: when removing an added tag , it becomes selected
I tried to fix with AI and submit the fix, but testing gave the same bug :(
Reproduction
<template #default="{tags, inputAttrs, inputHandlers, tagVariant, addTag, removeTag}"> <BButton variant="primary"@click="addTag()" >Add
<script setup lang="ts"> import {ref} from 'vue' const value = ref<string[]>(['apple', 'orange', 'banana']) </script> <BFormTag v-for="tag in tags" :key="tag" :title="tag" :variant="tagVariant"@remove="removeTag(tag)" >{{ tag }}
Used Package Manager
pnpm