Skip to content

Commit 2ebe708

Browse files
committed
Updated search input event
1 parent ffe1669 commit 2ebe708

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

components/DrawerItem/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export default {
4343
<style lang="scss" scoped>
4444
.drawer-item {
4545
display: inline-block;
46-
height: 8vh;
46+
height: 12vh;
4747
width: 100vw;
4848
margin-bottom: -4px;
4949
background-color: #343332;

components/Search/index.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<input
1010
ref="countries"
1111
type="text"
12-
v-model="country"
12+
:value="country"
1313
placeholder="Country"
1414
@keydown.enter="enter"
1515
@keydown.down="down"
@@ -104,7 +104,7 @@ export default {
104104
},
105105
openSuggestion() {
106106
return (
107-
this.country !== '' && this.matches.length != 0 && this.open === true
107+
this.country !== '' && this.matches.length != 0 && this.open
108108
)
109109
},
110110
results() {
@@ -168,6 +168,7 @@ export default {
168168
this.open = true
169169
this.current = 0
170170
}
171+
this.country = e.target.value
171172
this.tempValue = !e.target.value ? null : e.target.value
172173
if (this.tempValue === null) {
173174
this.provinces = []

0 commit comments

Comments
 (0)