Closed
Description
When i try remove the tag added in my multi select the options multiplies in my input automaticaly.
I get this reference in doc-site
{
type: "vueMultiSelect",
model: "cid10",
label: "cid10",
placeholder: "Busque uma doença",
required: true,
validator: VueFormGenerator.validators.required,
selectOptions: {
multiple: true,
key: "code",
label: "name",
searchable: true,
taggable: true,
tagPlaceholder: "Adicione o código",
onNewTag: function(newTag, id, options, value) {
const tag = {
name: newTag,
code: newTag.substring(0,2) + Math.floor((Math.random() * 10000000))
};
options.push(tag);
value.push(tag);
}
},
onChanged: function(model,newVal,oldVal,field) {
console.log('@tag:', newVal);
},
values: [
]
}
Metadata
Metadata
Assignees
Labels
No labels