Fix/api URL field twitch (#1495)

Fixes: #1248
Co-authored-by: Yedoti Sumanth <sumanthyedoti@redd.in>
This commit is contained in:
Sumanth Yedoti 2020-11-03 12:21:02 +05:30 committed by GitHub
parent 1c4adf84a1
commit 87a2effbc5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 3 deletions

View File

@ -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>

View File

@ -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;
`; `;

View File

@ -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)),
}); });