From 0e317b8f97d908a149d7b3d094dd23e27b60eee0 Mon Sep 17 00:00:00 2001 From: Allen Date: Sat, 7 May 2022 18:16:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=85=AC=E5=BC=8F=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E5=99=A8=20variableMode=20=E5=A4=B1=E6=95=88=20(#4252)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/components/Play.jsx | 1 - src/components/formula/Picker.tsx | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/components/Play.jsx b/examples/components/Play.jsx index a159710b7..c7ccc5b60 100644 --- a/examples/components/Play.jsx +++ b/examples/components/Play.jsx @@ -480,7 +480,6 @@ export default class PlayGround extends React.Component { render() { const {vertical, mini, height, theme, classPrefix} = this.props; - console.log(classPrefix); if (mini) { return (
diff --git a/src/components/formula/Picker.tsx b/src/components/formula/Picker.tsx index fab5cafa6..1d85bdd75 100644 --- a/src/components/formula/Picker.tsx +++ b/src/components/formula/Picker.tsx @@ -275,6 +275,7 @@ export class FormulaPicker extends React.Component< variables, functions, children, + variableMode, ...rest } = this.props; const {isOpened, value, editorValue, isError} = this.state; @@ -377,7 +378,7 @@ export class FormulaPicker extends React.Component< {...rest} variables={this.state.variables ?? variables} functions={this.state.functions ?? functions} - variableMode={this.state.variableMode} + variableMode={this.state.variableMode ?? variableMode} value={editorValue} onChange={this.handleEditorChange} />