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

Closed
JamesLMilner opened this issue Oct 31, 2018 · 0 comments
Closed

Option is not set from initial value on selects #153

JamesLMilner opened this issue Oct 31, 2018 · 0 comments

Comments

@JamesLMilner
Copy link
Contributor

@JamesLMilner JamesLMilner commented Oct 31, 2018

Bug

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

Code

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

Codesandbox:

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant