Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option is not set from initial value on selects #153

JamesMilnerUK opened this issue Oct 31, 2018 · 0 comments


Copy link

commented Oct 31, 2018


When using Dojo 4.0.0 to create a custom <Select> widget, the option does not get set correctly from the initial value.

@agubler believes this may be because in the VDOM nodes are created from the parents downwards, which means the option do not exist when the parent select is created.

Package Version: 4.0.0


const r = renderer(() => v('select', { value: 'b' }, [
    v('option', { value: 'a' }, ['a']),
    v('option', { value: 'b' }, ['b'])


Edit dojo-codesandbox-template

Expected behavior:

The option is correctly set when the is initialized with a given value.

Actual behavior:

The option is not set.

@agubler agubler referenced this issue Nov 1, 2018
3 of 3 tasks complete

@agubler agubler closed this in #154 Nov 7, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
1 participant
You can’t perform that action at this time.