From 30b7d9fa1c21fc824dcf15ae28c8b97b4d2e7cdb Mon Sep 17 00:00:00 2001 From: MattMo Date: Sun, 24 Dec 2023 15:21:18 -0800 Subject: [PATCH] Fixed an issue where readmore would show undefined if the value was null, not it shows nothing if there is no value. --- readmore.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)