fix(input): test for null element before update

Closes #9278
This commit is contained in:
Adam Bradley
2016-12-06 14:53:18 -06:00
parent 0b4e8cee53
commit f0327a999b

View File

@ -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' : '';
}
});
}
}
}