Fix/api URL field twitch (#1495)
Fixes: #1248 Co-authored-by: Yedoti Sumanth <sumanthyedoti@redd.in>
This commit is contained in:
parent
1c4adf84a1
commit
87a2effbc5
|
|
@ -271,6 +271,7 @@ class CodeEditor extends Component<Props, State> {
|
||||||
theme,
|
theme,
|
||||||
disabled,
|
disabled,
|
||||||
className,
|
className,
|
||||||
|
placeholder,
|
||||||
showLightningMenu,
|
showLightningMenu,
|
||||||
dataTreePath,
|
dataTreePath,
|
||||||
dynamicData,
|
dynamicData,
|
||||||
|
|
@ -349,12 +350,11 @@ class CodeEditor extends Component<Props, State> {
|
||||||
className="leftImageStyles"
|
className="leftImageStyles"
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<textarea
|
<textarea
|
||||||
ref={this.textArea}
|
ref={this.textArea}
|
||||||
{..._.omit(this.props.input, ["onChange", "value"])}
|
{..._.omit(this.props.input, ["onChange", "value"])}
|
||||||
defaultValue={input.value}
|
defaultValue={input.value}
|
||||||
placeholder={this.props.placeholder}
|
placeholder={placeholder}
|
||||||
/>
|
/>
|
||||||
{this.props.link && (
|
{this.props.link && (
|
||||||
<React.Fragment>
|
<React.Fragment>
|
||||||
|
|
|
||||||
|
|
@ -6,4 +6,5 @@ export default styled.div`
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
|
min-height: 50px;
|
||||||
`;
|
`;
|
||||||
|
|
|
||||||
|
|
@ -237,7 +237,7 @@ const mapStateToProps = (
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
const mapDispatchToProps = (dispatch: Function): ReduxDispatchProps => ({
|
const mapDispatchToProps = (dispatch: any): ReduxDispatchProps => ({
|
||||||
updateDatasource: datasource =>
|
updateDatasource: datasource =>
|
||||||
dispatch(change(API_EDITOR_FORM_NAME, "datasource", datasource)),
|
dispatch(change(API_EDITOR_FORM_NAME, "datasource", datasource)),
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user