Skip to content

What is wrong in my vueMultiSelect #583

Closed
@a21ns1g4ts

Description

@a21ns1g4ts

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
image

{
    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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions