Skip to content

Commit f6c685b

Browse files
authored
Merge pull request #14 from nativescript-community/fix/reset_pager_on_items_change
fix: reset pager to index 0 after items change
2 parents 13dbf4f + 7836e84 commit f6c685b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ui-pager/index.android.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,7 @@ export class Pager extends PagerBase {
274274
private _observableArrayHandler = (args) => {
275275
if (this.indicatorView && this.showIndicator) {
276276
this.indicatorView.setCount(this._childrenCount);
277+
this.indicatorView.setSelected(args.index);
277278
}
278279
if (this.pagerAdapter) {
279280
switch (args.action) {

0 commit comments

Comments
 (0)