diff --git a/MP.Stats/Components/DataPager.razor b/MP.Stats/Components/DataPager.razor
index 8516e5d9..527b8e78 100644
--- a/MP.Stats/Components/DataPager.razor
+++ b/MP.Stats/Components/DataPager.razor
@@ -1,21 +1,42 @@
@code {
+ protected int _numRecord { get; set; } = 10;
+
[Parameter]
- public int numRecord { get; set; } = 10;
+ public int numRecord
+ {
+ get
+ {
+ return _numRecord;
+ }
+ set
+ {
+ bool doReport = !_numRecord.Equals(value);
+ _numRecord = value;
+ if (doReport)
+ {
+ reportChange();
+ }
+ }
+ }
[Parameter]
public EventCallback numRecordChanged { get; set; }
- private async Task reportChange()
+ private void reportChange()
{
- await numRecordChanged.InvokeAsync(numRecord);
+ numRecordChanged.InvokeAsync(numRecord);
}
+
}
\ No newline at end of file