Skip to content

Commit

Permalink
fix(tab): return ScrollContentWidth (#633)
Browse files Browse the repository at this point in the history
  • Loading branch information
seraph17 authored and Matt Goo committed Feb 19, 2019
1 parent dba86fa commit c4a2a01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/tab-bar/index.tsx
Expand Up @@ -85,7 +85,7 @@ class TabBar extends React.Component<
},
getScrollContentWidth: () => {
if (!this.tabScrollerRef.current) return;
this.tabScrollerRef.current.getScrollContentWidth();
return this.tabScrollerRef.current.getScrollContentWidth();
},
getOffsetWidth: () => {
if (this.tabBarRef.current === null) return;
Expand Down

0 comments on commit c4a2a01

Please sign in to comment.