mirror of https://github.com/sveltejs/svelte
handle circular values when rendering bindings - fixes #2135
parent
220515b605
commit
4082566392
@ -0,0 +1,13 @@
|
|||||||
|
export default {
|
||||||
|
html: `
|
||||||
|
<select>
|
||||||
|
<option value="[object Object]">wheeee</option>
|
||||||
|
</select>
|
||||||
|
`,
|
||||||
|
|
||||||
|
ssrHtml: `
|
||||||
|
<select value="[object Object]">
|
||||||
|
<option value="[object Object]">wheeee</option>
|
||||||
|
</select>
|
||||||
|
`
|
||||||
|
};
|
@ -0,0 +1,10 @@
|
|||||||
|
<script>
|
||||||
|
let obj = {};
|
||||||
|
obj.self = obj;
|
||||||
|
|
||||||
|
let selected = obj;
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<select bind:value={selected}>
|
||||||
|
<option value={obj}>wheeee</option>
|
||||||
|
</select>
|
Loading…
Reference in new issue