File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ const showMobileMenu = shallowRef(false)
1919const route = useRoute ()
2020const isMobile = useIsMobile ()
2121const isSearchExpandedManually = shallowRef (false )
22- const searchBoxRef = shallowRef <{ focus : () => void } | null >( null )
22+ const searchBoxRef = useTemplateRef ( ' searchBoxRef ' )
2323
2424// On search page, always show search expanded on mobile
2525const isOnHomePage = computed (() => route .name === ' index' )
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ function handleSearchFocus() {
8080}
8181
8282// Expose focus method for parent components
83- const inputRef = shallowRef < HTMLInputElement | null >( null )
83+ const inputRef = useTemplateRef ( ' inputRef ' )
8484function focus() {
8585 inputRef .value ?.focus ()
8686}
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ const props = defineProps<{
33 modalTitle: string
44}>()
55
6- const dialogRef = ref < HTMLDialogElement >( )
6+ const dialogRef = useTemplateRef ( ' dialogRef ' )
77
88const modalTitleId = computed (() => {
99 const id = getCurrentInstance ()?.attrs .id
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ async function handleClaim() {
9696 }
9797}
9898
99- const dialogRef = ref < HTMLDialogElement >( )
99+ const dialogRef = useTemplateRef ( ' dialogRef ' )
100100
101101function open() {
102102 // Reset state and check availability each time modal is opened
You can’t perform that action at this time.
0 commit comments