mirror of
https://github.com/youzan/vant.git
synced 2025-10-19 18:14:13 +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);
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user