mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-03 04:27:41 +08:00
fix: nativeEvent is not a complete Event object (#1811)
* fix: nativeEvent is not a complete Event object The Spread syntax is only get own property of a Object,but many properties of Event is on it's prototypes chains, so the result is that the passed nativeEvent only has two property: isTrutsed and shiftKey * fix semicolon
This commit is contained in:
parent
a47b2bfc6e
commit
f564f6d0dc
@ -77,6 +77,7 @@ export default {
|
||||
this.sChecked = e.target.checked;
|
||||
}
|
||||
this.$forceUpdate(); // change前,维持现有状态
|
||||
e.shiftKey = this.eventShiftKey;
|
||||
this.__emit('change', {
|
||||
target: {
|
||||
...props,
|
||||
@ -88,7 +89,7 @@ export default {
|
||||
preventDefault() {
|
||||
e.preventDefault();
|
||||
},
|
||||
nativeEvent: { ...e, shiftKey: this.eventShiftKey },
|
||||
nativeEvent: e,
|
||||
});
|
||||
this.eventShiftKey = false;
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user