We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5be5544 commit 0f8cbb1Copy full SHA for 0f8cbb1
packages/component/src/BasicScrollToBottom.js
@@ -11,7 +11,7 @@ const ROOT_CSS = css({
11
});
12
13
export default props =>
14
- <Composer>
+ <Composer mode={ props.mode === 'top' ? 'top' : 'bottom'}>
15
<div className={ classNames(ROOT_CSS + '', props.className) }>
16
<Panel>
17
{ props.children }
packages/playground/src/App.js
@@ -52,6 +52,10 @@ class App extends Component {
52
};
53
}
54
55
+ componentDidMount() {
56
+ this.handleAdd(10);
57
+ }
58
+
59
handleAdd(count) {
60
this.setState(state => ({
61
paragraphs: [
0 commit comments