Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug fix onPaged event emit wrong property name #107

Closed
wants to merge 1 commit into from
Closed

Bug fix onPaged event emit wrong property name #107

wants to merge 1 commit into from

Conversation

zxshinxz
Copy link

@zxshinxz zxshinxz commented Sep 9, 2016

Updated Pager component onPaged event property name from 'value' => 'page' to match DataTable component event onPageChanged

…age' to match DataTable component event onPageChanged
@CLAassistant
Copy link

CLAassistant commented Sep 9, 2016

CLA assistant check
All committers have signed the CLA.

@@ -112,7 +112,7 @@ export class DataTablePager {

this.onPaged.emit({
type: 'pager-event',
value: page
page: page
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should use value instead as there are other places that are looking for that.

Copy link
Contributor

@timwright35 timwright35 Sep 9, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to change this then (DataTable.ts, line 160)

onPageChanged(action) {
    this.state.setPage(this.key, action);
    this.onPageChange.emit(action.page);
  }

since it is receiving the event and has no page property.

@amcdnl
Copy link
Contributor

amcdnl commented Sep 9, 2016

Resolved in latest. Thanks!

@amcdnl amcdnl closed this Sep 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants