I'm submitting a bug report
Please tell us about your environment:
Current behavior:
Using an interpolation binding inside an HTML <option> breaks the bound value of the select element.
f.e.
<select value.bind="selectedProduct.id">
<option model.bind="null">${theDefault}</option>
<option repeat.for="product of products" model.bind="product.id">
${product.name}
</option>
</select>
Remove ${theDefault} here (replace it with a static string), and everything works as expected.
Alternatively, changing void to await in the VM activate method works around the issue.
Expected/desired behavior:
(The GistRun example is outdated, see jdanyow/rjs-bundle#5)
https://codesandbox.io/s/nwvzx649yl
- What is the expected behavior?
CPU should be selected.
- What is the motivation / use case for changing the behavior?
- This worked in previous versions.
- We need to use a dynamic option label (we're actually using a computed property)
- We don't want to await loading of the items (it will delay rendering of the view)
@bigopon Could this be related to #677?
I'm submitting a bug report
2.2.0
Please tell us about your environment:
Operating System:
Windows 10
Node Version:
10.15.1
NPM Version:
6.4.1
JSPM OR Webpack AND Version
any
Browser:
all
Language:
all
Current behavior:
Using an interpolation binding inside an HTML
<option>breaks the bound value of the select element.f.e.
Remove
${theDefault}here (replace it with a static string), and everything works as expected.Alternatively, changing
voidtoawaitin the VM activate method works around the issue.Expected/desired behavior:
(The GistRun example is outdated, see jdanyow/rjs-bundle#5)
https://codesandbox.io/s/nwvzx649yl
CPUshould be selected.@bigopon Could this be related to #677?