We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 616e5f0 commit 1113ab9Copy full SHA for 1113ab9
components/Search/index.vue
@@ -21,6 +21,7 @@
21
}">
22
<select
23
ref="provinces"
24
+ @focus="onFocus"
25
@change="onChange">
26
<option
27
label="Select State"
@@ -173,9 +174,24 @@ export default {
173
174
})
175
176
},
177
+ onFocus(e) {
178
+ if (e.target.value) {
179
+ this.locationId = e.target.value
180
+ this.$gtag('event', 'focus', {
181
+ event_category: 'province',
182
+ event_label: 'province focus',
183
+ value: this.locationId
184
+ })
185
+ }
186
+ },
187
onChange(e) {
188
this.locationId = e.target.value
189
this.$refs.search.focus()
190
+ this.$gtag('event', 'change', {
191
192
+ event_label: 'province change',
193
194
195
}
196
197
0 commit comments