Skip to content

Commit 64dc495

Browse files
committed
fix(BlockchainSearchInput): click on example should focus the search input on landing page
See: f0429f1
1 parent f0429f1 commit 64dc495

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

frontend/layers/products/app/components/BlockchainSearchInput.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,14 +128,14 @@ const handleClickExample = (type: 'address' | 'token' | 'transaction' | 'validat
128128
:is-selected="false"
129129
icon="switch-horizontal"
130130
:aria-label="$t('products.landing_page.search.examples.transaction')"
131-
@click="emit('click:example', 'transaction')"
131+
@click="handleClickExample('transaction')"
132132
>
133133
{{ $t('products.landing_page.search.examples.tx') }}
134134
</BaseChip>
135135
<BaseChip
136136
:is-selected="false"
137137
icon="hash"
138-
@click="emit('click:example', 'address')"
138+
@click="handleClickExample('address')"
139139
>
140140
{{ $t('products.landing_page.search.examples.address') }}
141141
</BaseChip>
@@ -149,7 +149,7 @@ const handleClickExample = (type: 'address' | 'token' | 'transaction' | 'validat
149149
<BaseChip
150150
:is-selected="false"
151151
icon="hexagon"
152-
@click="emit('click:example', 'token')"
152+
@click="handleClickExample('token')"
153153
>
154154
{{ $t('products.landing_page.search.examples.token') }}
155155
</BaseChip>

0 commit comments

Comments
 (0)