Permalink
Browse files

fix: when text shape's content is 0, ensure it will be rendered. Closed

  • Loading branch information...
simaQ committed Aug 27, 2018
1 parent ba7efea commit b35dedf2512b86f4332df3440b6a9151cb2693dd
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/graphic/shape/text.js
@@ -77,7 +77,7 @@ class Text extends Shape {
const self = this;
const attrs = self._attrs.attrs;
const text = attrs.text;
if (!text) {
if (Util.isNil(text)) { // text will be 0
return;
}
const textArr = attrs.textArr;

0 comments on commit b35dedf

Please sign in to comment.