Skip to content

Select does not get value of prop right after rendering #1666

@MNITD

Description

@MNITD

I am trying to interact with select tag by setting value with prop and getting it with on change event.

I found some unexpected behavior:

  1. After rendering, select does not get the value of prop, value of select changing only after changing the value of prop
  2. The same situation with prop from store.

On the other hand if it is two-way binding, select is rendered with proper value.

https://svelte.technology/repl?version=2.11.0&gist=9bfb91057035f3fa96e0cacd0f122b63

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