Skip to content

Commit

Permalink
fix(param-body): onChange the body box should not switch to Highlight…
Browse files Browse the repository at this point in the history
…Code back and forth
  • Loading branch information
mathis-m committed Oct 8, 2021
1 parent 227b932 commit cf18ff8
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 cf18ff8

Please sign in to comment.