Skip to content

when <select> model and the option list changed at the same time, model may incorrectly set to undefined #10614

Open
@xieranmaya

Description

@xieranmaya

Version

2.6.10

Reproduction link

https://jsfiddle.net/4fyrj95L/

Steps to reproduce

set model binded to select element and the array that iterated the option list at the same time

make sure the new model value do not match any of the new options

the model will be set to undefined

What is expected?

model value to be set to 1

What is actually happening?

model's value set to undefined


This bug only appears when model and the options changed at the same and the new model value does not match any option, other situations behaves correctly as far as I tested.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions