Skip to content

Commit

Permalink
[Form.js] Add placeholder option for TextareaElement (#8412)
Browse files Browse the repository at this point in the history
This adds a placeholder option for the TextareaElement, similar
to TextboxElements.
  • Loading branch information
driusan authored Mar 17, 2023
1 parent 1ba88ac commit da65035
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jsx/Form.js
Original file line number Diff line number Diff line change
Expand Up @@ -1048,6 +1048,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 @@ -1063,6 +1064,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 @@ -1075,6 +1077,7 @@ TextareaElement.defaultProps = {
name: '',
label: '',
value: '',
placeholder: '',
id: null,
disabled: false,
required: false,
Expand Down

0 comments on commit da65035

Please # to comment.