Skip to content

Commit

Permalink
fix: call onEnd handler after destroying collector
Browse files Browse the repository at this point in the history
  • Loading branch information
notunderctrl committed Jan 27, 2024
1 parent b6d3cf5 commit 8243511
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/commandkit/src/components/ButtonKit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ export class ButtonKit extends ButtonBuilder {

public dispose() {
this.#destroyCollector();
this.#onEndHandler?.();
return this;
}

Expand Down

0 comments on commit 8243511

Please sign in to comment.