From 5a28fcd0e79b79bdd916ee3f04e59e4dc5add5a0 Mon Sep 17 00:00:00 2001 From: guy Date: Fri, 4 Sep 2020 00:10:33 +0800 Subject: [PATCH] bugfix --- src/base/single/text.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/base/single/text.js b/src/base/single/text.js index bc316725df..ace85aec91 100644 --- a/src/base/single/text.js +++ b/src/base/single/text.js @@ -106,6 +106,9 @@ var o = this.options; var text = BI.isFunction(o.text) ? o.text() : o.text; text = BI.isKey(text) ? text : o.value; + if (!BI.isKey(text)) { + return ""; + } return BI.Text.formatText(text + ""); },