From 2c2f545f08f82f295585634af1b08e993404ad6a Mon Sep 17 00:00:00 2001 From: Simon H <5968653+dummdidumm@users.noreply.github.com> Date: Tue, 21 Feb 2023 14:14:13 +0100 Subject: [PATCH] Update src/compiler/compile/css/Selector.ts Co-authored-by: Yuichiro Yamashita --- src/compiler/compile/css/Selector.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/compile/css/Selector.ts b/src/compiler/compile/css/Selector.ts index 5c6a8e6d89..5feb59ec0c 100644 --- a/src/compiler/compile/css/Selector.ts +++ b/src/compiler/compile/css/Selector.ts @@ -350,7 +350,7 @@ function attribute_matches(node: CssNode, name: string, expected_value: string, const attr = node.attributes.find((attr: CssNode) => attr.name === name); if (!attr) return false; if (attr.is_true) return operator === null; - if (expected_value === null) return true; + if (expected_value == null) return true; if (attr.chunks.length === 1) { const value = attr.chunks[0];