mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 17:51:54 +00:00
bugfix] Search: trigger blur after click search button (#1448)
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user