fix(param-body): fix loosing focus in Try It when typing (#7548)

Originally reported as SWOS-418

Closes #7477
This commit is contained in:
Mahtis Michel
2021-10-11 12:01:21 +02:00
committed by Vladimir Gorej
parent 8553943875
commit 5a5a27e9d5

View File

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