mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-05-23 15:09:16 +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();
|
event.preventDefault();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (this.type === 'search' && event.keyCode === 13) {
|
||||||
|
this.blur();
|
||||||
|
}
|
||||||
this.$emit('keypress', event);
|
this.$emit('keypress', event);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -21,6 +21,7 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
resize: none;
|
resize: none;
|
||||||
display: block;
|
display: block;
|
||||||
|
line-height: normal;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user