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,
|
||||
disabled,
|
||||
className,
|
||||
placeholder,
|
||||
showLightningMenu,
|
||||
dataTreePath,
|
||||
dynamicData,
|
||||
|
|
@ -349,12 +350,11 @@ class CodeEditor extends Component<Props, State> {
|
|||
className="leftImageStyles"
|
||||
/>
|
||||
)}
|
||||
|
||||
<textarea
|
||||
ref={this.textArea}
|
||||
{..._.omit(this.props.input, ["onChange", "value"])}
|
||||
defaultValue={input.value}
|
||||
placeholder={this.props.placeholder}
|
||||
placeholder={placeholder}
|
||||
/>
|
||||
{this.props.link && (
|
||||
<React.Fragment>
|
||||
|
|
|
|||
|
|
@ -6,4 +6,5 @@ export default styled.div`
|
|||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
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 =>
|
||||
dispatch(change(API_EDITOR_FORM_NAME, "datasource", datasource)),
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user