mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-05-23 06:59:15 +08:00
bugfix] Search: trigger blur after click search button (#1448)
This commit is contained in:
parent
1aab05c4d3
commit
91f45ac61b
@ -162,6 +162,9 @@ export default create({
|
||||
event.preventDefault();
|
||||
}
|
||||
}
|
||||
if (this.type === 'search' && event.keyCode === 13) {
|
||||
this.blur();
|
||||
}
|
||||
this.$emit('keypress', event);
|
||||
},
|
||||
|
||||
|
@ -21,6 +21,7 @@
|
||||
width: 100%;
|
||||
resize: none;
|
||||
display: block;
|
||||
line-height: normal;
|
||||
box-sizing: border-box;
|
||||
background-color: transparent;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user