Skip to content

Commit

Permalink
fix: event on error after release
Browse files Browse the repository at this point in the history
  • Loading branch information
skie1997 committed Oct 26, 2023
1 parent 1ef9676 commit efc69e3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/vchart/src/core/vchart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -989,6 +989,9 @@ export class VChart implements IVChart {
on(eType: EventType, handler: EventCallback<EventParams>): void;
on(eType: EventType, query: EventQuery, handler: EventCallback<EventParams>): void;
on(eType: EventType, query: EventQuery | EventCallback<EventParams>, handler?: EventCallback<EventParams>): void {
if (!this._userEvents || this._userEvents.length === 0) {
return;
}
this._userEvents.push({
eType,
query: typeof query === 'function' ? null : query,
Expand Down

0 comments on commit efc69e3

Please sign in to comment.