fix: unreactive sort options
This commit is contained in:
1 file changed
+2
-1
@@ -45,7 +45,8 @@
|
|||||||
|
|
||||||
type Result = PostView | CommentView | PersonView | CommunityView
|
type Result = PostView | CommentView | PersonView | CommunityView
|
||||||
|
|
||||||
let { data = $bindable() } = $props()
|
let { data: passedData } = $props()
|
||||||
|
let data = $state(passedData)
|
||||||
|
|
||||||
let query = $state(data.query || '')
|
let query = $state(data.query || '')
|
||||||
let searchElement: HTMLInputElement | undefined = $state()
|
let searchElement: HTMLInputElement | undefined = $state()
|
||||||
|
|||||||
Reference in new issue
Block a user