[bugfix] Field: readonly in safari (#1399)

This commit is contained in:
neverland 2018-07-04 13:23:31 +08:00 committed by GitHub
parent 64a9b423eb
commit 815464e965
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {