mirror of
https://github.com/ansible/awx.git
synced 2026-01-25 00:11:23 -03:30
add ids to CodeMirror FormGroup containers
This commit is contained in:
parent
40d3e4ee8b
commit
13e6757666
@ -30,6 +30,7 @@ function CodeMirrorField({
|
||||
|
||||
return (
|
||||
<FormGroup
|
||||
id={`${id}-field`}
|
||||
fieldId={id}
|
||||
helperText={helperText}
|
||||
helperTextInvalid={meta.error}
|
||||
@ -39,7 +40,7 @@ function CodeMirrorField({
|
||||
labelIcon={<FieldTooltip content={tooltip} />}
|
||||
>
|
||||
<CodeMirrorInput
|
||||
id="webhook-headers"
|
||||
id={id}
|
||||
{...rest}
|
||||
{...field}
|
||||
onChange={value => {
|
||||
|
||||
@ -107,6 +107,7 @@ CodeMirrorInput.propTypes = {
|
||||
hasErrors: bool,
|
||||
fullHeight: bool,
|
||||
rows: number,
|
||||
className: string,
|
||||
};
|
||||
CodeMirrorInput.defaultProps = {
|
||||
readOnly: false,
|
||||
@ -114,6 +115,7 @@ CodeMirrorInput.defaultProps = {
|
||||
rows: 6,
|
||||
fullHeight: false,
|
||||
hasErrors: false,
|
||||
className: '',
|
||||
};
|
||||
|
||||
export default CodeMirrorInput;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user