Skip to content

Commit

Permalink
fix(input): test for null element before update
Browse files Browse the repository at this point in the history
Closes #9278
  • Loading branch information
adamdbradley committed Dec 6, 2016
1 parent 0b4e8ce commit f0327a9
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/components/content/content.ts
Expand Up @@ -506,9 +506,13 @@ export class Content extends Ion implements OnDestroy, OnInit {
console.debug(`content, addScrollPadding, newPadding: ${newPadding}, this._scrollPadding: ${this._scrollPadding}`);

this._scrollPadding = newPadding;
this._dom.write(() => {
this._scrollEle.style.paddingBottom = (newPadding > 0) ? newPadding + 'px' : '';
});
if (this._scrollEle) {
this._dom.write(() => {
if (this._scrollEle) {
this._scrollEle.style.paddingBottom = (newPadding > 0) ? newPadding + 'px' : '';
}
});
}
}
}

Expand Down

0 comments on commit f0327a9

Please sign in to comment.