Skip to content

Commit

Permalink
refactor(tip-manager)!: Remove deprecated calciteTipManagerClose ev…
Browse files Browse the repository at this point in the history
…ent. #5798
  • Loading branch information
driskull committed Nov 29, 2022
1 parent 3250af0 commit 005246b
Showing 2 changed files with 0 additions and 10 deletions.
1 change: 0 additions & 1 deletion src/components/tip-manager/tip-manager.e2e.ts
Original file line number Diff line number Diff line change
@@ -65,7 +65,6 @@ describe("calcite-tip-manager", () => {
let isVisible = await container.isVisible();
expect(isVisible).toBe(true);

const toggleEventSpy = await page.spyOnEvent("calciteTipManagerToggle", "window");
const closeEventSpy = await page.spyOnEvent("calciteTipManagerClose", "window");

const closeButton = await page.find(`calcite-tip-manager >>> .${CSS.close}`);
9 changes: 0 additions & 9 deletions src/components/tip-manager/tip-manager.tsx
Original file line number Diff line number Diff line change
@@ -37,7 +37,6 @@ export class TipManager {
@Watch("closed")
closedChangeHandler(): void {
this.direction = null;
this.calciteTipManagerToggle.emit();
}

/**
@@ -141,13 +140,6 @@ export class TipManager {
//
// --------------------------------------------------------------------------

/**
* Emits when the component has been open or closed.
*
* @deprecated use `calciteTipManagerClose` instead.
*/
@Event({ cancelable: false }) calciteTipManagerToggle: EventEmitter<void>;

/**
* Emits when the component has been closed.
*/
@@ -179,7 +171,6 @@ export class TipManager {

hideTipManager = (): void => {
this.closed = true;
this.calciteTipManagerToggle.emit();
this.calciteTipManagerClose.emit();
};

0 comments on commit 005246b

Please sign in to comment.