Skip to content

Commit cbce86f

Browse files
committed
update Sample project
1 parent 7184885 commit cbce86f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Sample/App.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@ class App extends Component<any, StateType> {
126126
borderWidth: 1,
127127
borderRadius: 2,
128128
paddingLeft: 5,
129-
maxHeight: 300, // maxHeight is recommended to multiline
129+
// maxHeight is recommended for multiline, to prevent infinite grown
130+
maxHeight: multiline ? 300 : undefined,
130131
}}
131132
ref={ref}
132133
value={this.state.inputsValues[ref] || ''}

0 commit comments

Comments
 (0)