-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(TextArea): add
autoHeight
prop (#1083)
* feat(982): add autoHeight proporty for TextArea * feat(982): recalculate height when the autoHeight is set and component did mount * feat(982): test cases for onInput and onBlur props * docs(TextArea): add autoHeight example * feat(TextArea): handle changing autoHeight * test(TextArea): add autoHeight tests * test(TextArea): account for CI CSS rendering * test(TextArea): assert height within a range
- Loading branch information
1 parent
9281947
commit 3b59d6c
Showing
6 changed files
with
176 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
docs/app/Examples/addons/TextArea/Usage/TextAreaExampleAutoHeight.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import React from 'react' | ||
import { Form, TextArea } from 'semantic-ui-react' | ||
|
||
const TextAreaExampleAutoHeight = () => ( | ||
<Form> | ||
<TextArea placeholder='Try adding multiple lines' autoHeight /> | ||
</Form> | ||
) | ||
|
||
export default TextAreaExampleAutoHeight |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters