]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: tweaks edison/fix/13387 13389/head
authordaiwei <daiwei521@126.com>
Wed, 28 May 2025 01:14:12 +0000 (09:14 +0800)
committerdaiwei <daiwei521@126.com>
Wed, 28 May 2025 01:14:12 +0000 (09:14 +0800)
packages/compiler-sfc/src/style/pluginScoped.ts

index 51e30fc088ca385ef1ac5c004bca7b7fbb930037..bd1bc39f1a0dcc0716467b5878cd2831f993b356 100644 (file)
@@ -257,9 +257,9 @@ function rewriteSelector(
     }
   } else {
     // #13387 don't inject [id] at the selector start if node is null
-    // and the selector starts with `>`
+    // and the selector starts with a non-empty combinator
     const { type, value } = selector.first
-    if (type === 'combinator' && value === '>') {
+    if (type === 'combinator' && value !== ' ') {
       shouldInject = false
     }
   }