Skip to content

Update label when options are changing #187

@bjarnef

Description

@bjarnef

I have a dropdown with options, where the options are depending on another dropdown.
When I select a value from a dropdown with transport options it get some different travel length, where part of the label is night (nætter) if the transport method is self-drive (kør-selv) otherwise days (dage).

image

image

But when changing to another transport option with the same values it doesn't update the label although the options are correct, but it does update the labels if the values are different.

image

I had the same issue with a regular select and angular bindings if the bindings were oneway, but if the bindings were twoway it did work. So I am wondering if this is using oneway binding on this?

Is there another way to ensure the label is updated?

In the last example the option 8 dage is selected, but the filter option label doesn't match this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions