Skip to content

Classes prop doesn't respond to changes when computed #126

@stevebauman

Description

@stevebauman

Version

  • Vue version: 3

Description

First off, thanks for the work on this! I really like this select component ❤️

When providing the classes prop as a computed property, multiselect doesn't apply the changes (i.e. is not reactive to the change).

I'm struggling attempting to apply "invalid" styling to the element, since the component doesn't re-compute class name changes.

Demo

https://jsfiddle.net/phuqkv0b/

When changing invalid to true and re-running the fiddle, the text and container border is appropriately changed to red. However, changing it dynamically via a button (for example) does not update the classes and reflect the necessary class changes.

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