Skip to content

select tag defaultVault doesn't work in certain conditions #1663

@wookiehangover

Description

@wookiehangover

http://jsfiddle.net/2hqSu/4/

I ran into an inconsistency when trying to use defaultValue on a select tag and also generating options from values in this.props. If options are provided after the component is initially rendered (in my case, getting the options from an AJAX call,) defaultValue isn't correctly set on subsequent calls to render.

value still works as expected in this scenario, as does providing the complete array of options to the view constructor.

A test case is in the jsfiddle linked above.

Not sure what the expected behavior for defaultValue is in this case 👻

Thanks!

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