mirror of https://github.com/sveltejs/svelte
Merge pull request #1048 from sveltejs/gh-1022
allow options outside <select> elementspull/1049/head
commit
831cc411a1
@ -0,0 +1,14 @@
|
|||||||
|
export default {
|
||||||
|
data: {
|
||||||
|
foo: 'hello'
|
||||||
|
},
|
||||||
|
|
||||||
|
html: `<option value='hello'>hello</option>`,
|
||||||
|
|
||||||
|
test(assert, component, target) {
|
||||||
|
component.set({ foo: 'goodbye' });
|
||||||
|
assert.htmlEqual(target.innerHTML, `
|
||||||
|
<option value='goodbye'>goodbye</option>
|
||||||
|
`);
|
||||||
|
}
|
||||||
|
};
|
@ -0,0 +1 @@
|
|||||||
|
<option value='{{foo}}'>{{foo}}</option>
|
Loading…
Reference in new issue