Skip to content

Commit

Permalink
fix(param-body): fix loosing focus in Try It when typing (#7548)
Browse files Browse the repository at this point in the history
Originally reported as SWOS-418

Closes #7477
  • Loading branch information
mathis-m authored Oct 11, 2021
1 parent 227b932 commit 74834e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/components/param-body.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export default class ParamBody extends PureComponent {
const {consumesValue} = this.props
const isXml = /xml/i.test(consumesValue)
const inputValue = e.target.value
this.onChange(inputValue, {isXml})
this.onChange(inputValue, {isXml, isEditBox: this.state.isEditBox})
}

toggleIsEditBox = () => this.setState( state => ({isEditBox: !state.isEditBox}))
Expand Down

0 comments on commit 74834e3

Please sign in to comment.