From ef942bf281194c318dc306cb56f2058b9a600c7a Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Thu, 15 Aug 2024 14:04:08 -0300 Subject: html: treat html.isBlank() as null in type: 'string' slots --- src/util/html.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/util/html.js') diff --git a/src/util/html.js b/src/util/html.js index 6efedb31..73e08854 100644 --- a/src/util/html.js +++ b/src/util/html.js @@ -1713,6 +1713,10 @@ export class Template { if (providedValue instanceof Tag || providedValue instanceof Template) { return providedValue.toString(); } + + if (isBlank(providedValue)) { + return null; + } } if (providedValue !== null) { -- cgit 1.3.0-6-gf8a5