From 4fedaf63f8fd51b7affb9332e33242205572e47b Mon Sep 17 00:00:00 2001 From: Mahtis Michel Date: Mon, 11 Oct 2021 12:01:21 +0200 Subject: [PATCH] fix(param-body): fix loosing focus in Try It when typing (#7548) Originally reported as SWOS-418 Closes #7477 --- 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}))