Skip to content

Commit c8dad43

Browse files
committed
fix: playground version dropdown
1 parent 05d9923 commit c8dad43

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/tags/let-search-param.marko

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ export interface Input {
44
<let/internalValue=$global.url.searchParams.get(input.key)/>
55

66
<return=internalValue valueChange(newValue: string) {
7-
$global.url.searchParams.set(input.key, newValue);
8-
$global.url.hash = window.location.hash;
9-
history.replaceState(null, "", $global.url.toString())
7+
const newUrl = new URL(window.location.href);
8+
newUrl.searchParams.set(input.key, newValue);
9+
history.replaceState(null, "", newUrl.toString())
1010
internalValue = newValue;
1111
}/>

0 commit comments

Comments
 (0)