Skip to content

value-attribute doesn't return id #375

@speckis

Description

@speckis

My belief was that "display-attribute='name'" would show the name, and "value-attribute='id'" would return the id.
For ex:
{
"id":5,
"name": Test
}

Then value-attribute would then return 5.

Right now it just returns a static string with just literally "id" in it. Am I doing it wrong, or is there, as of now, no support to get the id from the object? (Similiar to vuetify's autocomplete)

TL;DR: V-model returns the object, need to filter out the objects "id". Value-attribute doesn't do that, as I believed.

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