diff --git a/src/core.tsx b/src/core.tsx index 62eb357..869dc86 100644 --- a/src/core.tsx +++ b/src/core.tsx @@ -162,7 +162,7 @@ export default class EChartsReactCore extends PureComponent { if (!events) return; // loop and off for (const eventName in events) { - if (isString(eventName) && Object.prototype.hasOwnProperty.call(events, eventName)) { + if (isString(eventName)) { instance.off(eventName); } }