mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[bugfix] Field: readonly in safari (#1399)
This commit is contained in:
parent
64a9b423eb
commit
815464e965
@ -136,6 +136,11 @@ export default create({
|
||||
onFocus(event) {
|
||||
this.focused = true;
|
||||
this.$emit('focus', event);
|
||||
|
||||
// hack for safari
|
||||
if (this.readonly) {
|
||||
this.blur();
|
||||
}
|
||||
},
|
||||
|
||||
onBlur(event) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user