From cf18ff8b0132ce0ffcdd8fc44f340f77a63e8925 Mon Sep 17 00:00:00 2001 From: mathis-m Date: Fri, 8 Oct 2021 18:15:05 +0200 Subject: [PATCH] fix(param-body): onChange the body box should not switch to HighlightCode back and forth --- src/core/components/param-body.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/components/param-body.jsx b/src/core/components/param-body.jsx index 8156849cd62..af70f9234bd 100644 --- a/src/core/components/param-body.jsx +++ b/src/core/components/param-body.jsx @@ -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}))