From 82173ad1a938a8d1c8f272afa28381b67cc4b67e Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Sun, 4 Feb 2024 22:13:17 +0000 Subject: [PATCH] fix(nuxt): remove `$` from generated id in `useId` (#25615) --- packages/nuxt/src/app/composables/id.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/nuxt/src/app/composables/id.ts b/packages/nuxt/src/app/composables/id.ts index 5b0c666cb9..b6e3e69af9 100644 --- a/packages/nuxt/src/app/composables/id.ts +++ b/packages/nuxt/src/app/composables/id.ts @@ -12,6 +12,8 @@ export function useId (key?: string): string { if (typeof key !== 'string') { throw new TypeError('[nuxt] [useId] key must be a string.') } + // TODO: implement in composable-keys + key = key.slice(1) const nuxtApp = useNuxtApp() const instance = getCurrentInstance()