Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[Form.js] Add placeholder option for TextareaElement #8412

Merged
merged 1 commit into from
Mar 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions jsx/Form.js
Original file line number Diff line number Diff line change
Expand Up @@ -1043,6 +1043,7 @@ class TextareaElement extends Component {
name={this.props.name}
id={this.props.id}
value={this.props.value || ''}
placeholder={this.props.placeholder}
required={required}
disabled={disabled}
onChange={this.handleChange}
Expand All @@ -1058,6 +1059,7 @@ TextareaElement.propTypes = {
name: PropTypes.string.isRequired,
label: PropTypes.string,
value: PropTypes.string,
placeholder: PropTypes.string,
id: PropTypes.string,
disabled: PropTypes.bool,
required: PropTypes.bool,
Expand All @@ -1070,6 +1072,7 @@ TextareaElement.defaultProps = {
name: '',
label: '',
value: '',
placeholder: '',
id: null,
disabled: false,
required: false,
Expand Down