Skip to content
This repository has been archived by the owner on May 4, 2022. It is now read-only.

Commit

Permalink
fix(): add undefined and iOS checks when running iOS 12.2 scrolling p…
Browse files Browse the repository at this point in the history
…atches (#1008)

* add undef check

* whitespace
  • Loading branch information
liamdebeasi authored Apr 10, 2019
1 parent cf65fad commit 4e1ae2e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/navigation/nav-controller-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -770,8 +770,13 @@ export class NavControllerBase extends Ion implements NavController {
* be re-enabled unless there
* is some kind of CSS reflow triggered
*/
if (enteringView.getIONContentRef()) {
const platform = this.plt;
const platform = this.plt;
if (
enteringView &&
enteringView.getIONContentRef &&
enteringView.getIONContentRef() &&
platform.is('ios')
) {
platform.timeout(() => {
platform.raf(() => {
const content = enteringView.getIONContentRef().nativeElement;
Expand Down

0 comments on commit 4e1ae2e

Please sign in to comment.