-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
handle circular values when rendering bindings - fixes #2135
- Loading branch information
1 parent
220515b
commit 4082566
Showing
3 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> | ||
` | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<script> | ||
let obj = {}; | ||
obj.self = obj; | ||
let selected = obj; | ||
</script> | ||
|
||
<select bind:value={selected}> | ||
<option value={obj}>wheeee</option> | ||
</select> |