Skip to content

Commit

Permalink
refactor(pagination)!: remove deprecated event. (#6020)
Browse files Browse the repository at this point in the history
**Related Issue:** #5798 

BREAKING CHANGE: Removed deprecated event.

Removed the event `calcitePaginationUpdate` event, use
`calcitePaginationChange` event instead.
  • Loading branch information
anveshmekala authored Dec 14, 2022
1 parent eb28eb9 commit 34fde8b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
8 changes: 0 additions & 8 deletions src/components/pagination/pagination.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,6 @@ export class Pagination implements LocalizedComponent {
//
//--------------------------------------------------------------------------

/**
* Emits when the selected page changes.
*
* @deprecated use calcitePaginationChange instead
*/
@Event({ cancelable: false }) calcitePaginationUpdate: EventEmitter<PaginationDetail>;

/**
* Emits when the selected page changes.
*
Expand Down Expand Up @@ -190,7 +183,6 @@ export class Pagination implements LocalizedComponent {
};

this.calcitePaginationChange.emit(changePayload);
this.calcitePaginationUpdate.emit(changePayload);
}

//--------------------------------------------------------------------------
Expand Down
7 changes: 3 additions & 4 deletions src/components/pagination/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,9 @@ For example, after querying the search API, you'll get back a response similar t

## Events

| Event | Description | Type |
| ------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ------------------------------- |
| `calcitePaginationChange` | Emits when the selected page changes. | `CustomEvent<PaginationDetail>` |
| `calcitePaginationUpdate` | <span style="color:red">**[DEPRECATED]**</span> use calcitePaginationChange instead<br/><br/>Emits when the selected page changes. | `CustomEvent<PaginationDetail>` |
| Event | Description | Type |
| ------------------------- | ------------------------------------- | ------------------------------- |
| `calcitePaginationChange` | Emits when the selected page changes. | `CustomEvent<PaginationDetail>` |

## Methods

Expand Down

0 comments on commit 34fde8b

Please sign in to comment.