diff --git a/readmore.js b/readmore.js index 7e92493..9ae29b0 100644 --- a/readmore.js +++ b/readmore.js @@ -23,7 +23,7 @@ class ReadMore extends IgniteElement { render() { return this.template.child( - new text([this.collapsed, this.value, this.limit], (collapsed, value, limit) => collapsed && value && value.length > limit ? value.substring(0, limit).trimEnd() + "..." : value), + new text([this.collapsed, this.value, this.limit], (collapsed, value, limit) => collapsed && value && value.length > limit ? value.substring(0, limit).trimEnd() + "..." : (value ? value : "")), new button() .show([this.value, this.limit], (value, limit) => value && value.length > limit)