fix(param-body): fix loosing focus in Try It when typing (#7548)
Originally reported as SWOS-418 Closes #7477
This commit is contained in:
committed by
Vladimir Gorej
parent
8553943875
commit
5a5a27e9d5
@@ -86,7 +86,7 @@ export default class ParamBody extends PureComponent {
|
|||||||
const {consumesValue} = this.props
|
const {consumesValue} = this.props
|
||||||
const isXml = /xml/i.test(consumesValue)
|
const isXml = /xml/i.test(consumesValue)
|
||||||
const inputValue = e.target.value
|
const inputValue = e.target.value
|
||||||
this.onChange(inputValue, {isXml})
|
this.onChange(inputValue, {isXml, isEditBox: this.state.isEditBox})
|
||||||
}
|
}
|
||||||
|
|
||||||
toggleIsEditBox = () => this.setState( state => ({isEditBox: !state.isEditBox}))
|
toggleIsEditBox = () => this.setState( state => ({isEditBox: !state.isEditBox}))
|
||||||
|
|||||||
Reference in New Issue
Block a user