Skip to content

Commit

Permalink
fix(components): 修复 ScrollView scrollTop 空字符串问题
Browse files Browse the repository at this point in the history
  • Loading branch information
jinjinjin0731 committed Mar 13, 2019
1 parent 1e64b83 commit c989470
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/taro-components/src/components/scroll-view/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class ScrollView extends Nerv.Component {
// Y 轴滚动
if (
nextProps.scrollY &&
typeof props.scrollTop === 'number' &&
typeof nextProps.scrollTop === 'number' &&
nextProps.scrollTop !== this._scrollTop
) {
if ('scrollWithAnimation' in nextProps) {
Expand Down Expand Up @@ -170,7 +170,7 @@ class ScrollView extends Nerv.Component {
ref={container => {
this.container = container
}}
{...omit(this.props, ['className'])}
{...omit(this.props, ['className', 'scrollTop', 'scrollLeft'])}
className={cls}
onScroll={_onScroll}
>
Expand Down

0 comments on commit c989470

Please sign in to comment.