Skip to content

Commit

Permalink
fix(pagiantion): convert prop toString in setter
Browse files Browse the repository at this point in the history
  • Loading branch information
Theeraphat Sorasetsakul authored and Theeraphat Sorasetsakul committed Dec 14, 2021
1 parent aad41b7 commit 3c32ee9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/elements/src/pagination/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export class Pagination extends BasicElement {
*/
@property({ type: String })
public get value (): string {
return this._value.toString();
return this._value;
}

/**
Expand All @@ -84,7 +84,7 @@ export class Pagination extends BasicElement {

const oldValue = this._value;
if (oldValue !== newValue) {
this._value = newValue;
this._value = newValue.toString();
}
this.requestUpdate('value', oldValue);
}
Expand Down Expand Up @@ -139,7 +139,7 @@ export class Pagination extends BasicElement {

const oldValue = this._max;
if (oldValue !== newValue) {
this._max = newValue;
this._max = newValue.toString();
}
this.requestUpdate('max', oldValue);
}
Expand Down

0 comments on commit 3c32ee9

Please sign in to comment.