Skip to content

Commit

Permalink
fix(datetime): picker.refresh() in generate(...) called too early
Browse files Browse the repository at this point in the history
  • Loading branch information
flivni authored and manucorporat committed Mar 8, 2017
1 parent 1d68d1f commit 58beea3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/datetime/datetime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,7 @@ export class DateTime extends Ion implements AfterContentInit, ControlValueAcces

picker.ionChange.subscribe(() => {
this.validate(picker);
picker.refresh();
});

picker.present(pickerOptions);
Expand All @@ -516,6 +517,8 @@ export class DateTime extends Ion implements AfterContentInit, ControlValueAcces
picker.onDidDismiss(() => {
this._isOpen = false;
});

picker.refresh();
}

/**
Expand Down Expand Up @@ -673,8 +676,6 @@ export class DateTime extends Ion implements AfterContentInit, ControlValueAcces
}
}
}

picker.refresh();
}

/**
Expand Down

0 comments on commit 58beea3

Please sign in to comment.