\n \u003C/div>\n\u003C/template>\n\n\u003Cscript setup>\nconst tabIndex = ref(0)\nconst tabItems = [\n {\n accessorKey: 'firstTab',\n label: 'First Tab',\n value: 0\n },\n {\n accessorKey: 'secondTab',\n label: 'Second Tab',\n value: 1\n },\n {\n accessorKey: 'thirdTab',\n label: 'Third Tab',\n value: 2\n }\n]\n\u003C/script>\n```\n\n### Description\n\nIn Nuxt UI's UTabs component, when an item's value is set to 0 (a number), the internal TabsTrigger evaluates `:value=\"item.value || String(index)\"`. Since 0 is falsy in JavaScript, it falls back to String(index) (e.g., '0'), causing the v-model to update as a string instead of a number, leading to unexpected type coercion after tab selection.\n\nPotential solution:\n\n`:value=\"item.value ?? String(index)\" `\n\nThis uses the nullish coalescing operator (??), which only falls back if item.value is null or undefined (not falsy values like 0), preserving the numeric type for 0 while maintaining the intended fallback behavior for missing values.\n\n### Additional context\n\n_No response_\n\n### Logs\n\n```shell-script\n\n```",[3137,3140,3143],{"name":3138,"color":3139},"bug","d73a4a",{"name":3141,"color":3142},"v3","49DCB8",{"name":3144,"color":3145},"triage","ffffff",4804,"nuxt","ui","open","UTabs: Numeric value 0 coerced to string due to falsy check in TabsTrigger","2025-08-21T22:30:48Z","https://github.com/nuxt/ui/issues/4804",0.76977867,{"description":3155,"labels":3156,"number":3160,"owner":3147,"repository":3161,"state":3162,"title":3163,"updated_at":3164,"url":3165,"score":3166},"### 📚 What are you trying to do?\r\n\r\nTrying to add a trigger to the `scriptOptions` for useScriptGoogleTagManager causes a crash\r\n\r\neg\r\n```\r\nuseScriptGoogleTagManager({\r\n key: 'KEY',\r\n scriptOptions: {\r\n trigger: useScriptTriggerConsent({\r\n consent: agreedToCookies\r\n })\r\n },\r\n})\r\n```\r\n\r\n### 🔍 What have you tried?\r\n\r\n_No response_\r\n\r\n### ℹ️ Additional context\r\n\r\n_No response_",[3157],{"name":3158,"color":3159},"help wanted","008672",258,"scripts","closed","Unable to trigger google tag manager via consent","2024-09-12T11:47:22Z","https://github.com/nuxt/scripts/issues/258",0.7142923,{"description":3168,"labels":3169,"number":3171,"owner":3147,"repository":3161,"state":3162,"title":3172,"updated_at":3173,"url":3174,"score":3175},"### 🐛 The bug\n\nThe tuple type for the gtag function params contains only `[fn: 'config', opt: 'reset']` which is the last definition in the GTag interface from the library 'third-party-capital'. \n\nI wasn't able to reproduce it in stackblitz because the types didn't work at all. I've testet in the nuxt-script Playground. \n\n\n\n\n### 🛠️ To reproduce\n\n- \n\n### 🌈 Expected behavior\n\nInfer the correct types based on the first argument of the function. \n\n### ℹ️ Additional context\n\n_No response_",[3170],{"name":3138,"color":3139},320,"Wrong Types for gtag function params","2024-11-21T13:00:57Z","https://github.com/nuxt/scripts/issues/320",0.7234704,{"description":3177,"labels":3178,"number":3185,"owner":3147,"repository":3147,"state":3162,"title":3186,"updated_at":3187,"url":3188,"score":3189},"### What problem does this feature solve?\n\nHello, i really appreciate what it does google-tag-manager package and i have a question and feature request about it.\nDoes it have an option to put the gtm script in body (body: true) or we have to modify the package on node_modules directly?\n`// Add google tag manager script to head @nuxtjs/google-tag-manager/index.js line 47\n this.options.head.script.push({\n src: (options.scriptURL || '//www.googletagmanager.com/gtm.js') + '?' + queryString,\n async: true,\n body: true\n })`\r\nIt will be nice to add this as an option if it does not exist.\nI have another question about script, when I add (body: true) in @ nuxtjs / google-tag-manager / index.js line 47. the script is added at the end of the body scope but the script https: // www. google-analytics.com/analytics.js appears in the head, how can i move it to the body?\n\n\u003C!--cmty-->\u003C!--cmty_prevent_hook-->\n\u003Cdiv align=\"right\">\u003Csub>\u003Cem>This feature request is available on \u003Ca href=\"https://cmty.app/nuxt\">Nuxt\u003C/a> community (\u003Ca href=\"https://cmty.app/nuxt/nuxt.js/issues/c9297\">#c9297\u003C/a>)\u003C/em>\u003C/sub>\u003C/div>",[3179,3182],{"name":3180,"color":3181},"enhancement","8DEF37",{"name":3183,"color":3184},"2.x","d4c5f9",5850,"Google tag manager module script on head","2023-01-22T15:50:56Z","https://github.com/nuxt/nuxt/issues/5850",0.73464435,{"labels":3191,"number":3194,"owner":3147,"repository":3147,"state":3162,"title":3195,"updated_at":3196,"url":3197,"score":3198},[3192,3193],{"name":3180,"color":3181},{"name":3183,"color":3184},6366,"Google Tag Manager - Document location - Fix the rogue Referral Problem In SPA","2023-01-22T15:51:03Z","https://github.com/nuxt/nuxt/issues/6366",0.750053,{"description":3200,"labels":3201,"number":3203,"owner":3147,"repository":3161,"state":3162,"title":3204,"updated_at":3205,"url":3206,"score":3207},"### 🐛 The bug\n\n### Environment\r\n\r\nnuxt: 3.12.3\r\n@nuxt/scripts: 0.8.3\r\nnode: v22.4.0\r\n### Reproduction\r\n\r\n1. Use the ScriptGoogleMaps component as demonstrated in the official documentation:\r\n - [ScriptGoogleMaps Demo](https://scripts.nuxt.com/scripts/content/google-maps#scriptgooglemaps)\r\n\r\n2. Follow the setup instructions and ensure the component is implemented according to the demo.\r\n\r\n3. Navigate to another page and observe the console for errors when the component is unmounted.\r\n\r\n### Describe the bug\r\n\r\nIn the beforeUnmount hook of the ScriptGoogleMaps component, there is an attempt to call marker.setMap(null) on marker elements. However, this method does not exist on the marker object.\r\n\r\nThe type of mapMarker is:\r\n\r\n mapMarkers: Map (Ref)\r\n Key: \"FL54SOqWoQ\"\r\n Value: Promise\r\n\r\nUpon unmounting the component, the following error is thrown:\r\n\r\nUnhandled error during execution of beforeUnmount hook: Uncaught (in promise) TypeError: marker.setMap is not a function\n\n### 🛠️ To reproduce\n\nhttps://stackblitz.com/edit/nuxt-starter-fsbb83?file=pages%2Findex.vue\n\n### 🌈 Expected behavior\n\nIn the `beforeUnmount` hook, the component should properly clean up marker elements without throwing an error. \n\n### ℹ️ Additional context\n\n_No response_",[3202],{"name":3138,"color":3139},252,"ScriptGoogleMaps: Error thrown in beforeUnmount hook","2024-09-07T18:30:30Z","https://github.com/nuxt/scripts/issues/252",0.75574493,{"description":3209,"labels":3210,"number":3214,"owner":3147,"repository":3148,"state":3162,"title":3215,"updated_at":3216,"url":3217,"score":3218},"### Environment\n\n- Operating System: Linux\n- Node Version: v22.11.0\n- Nuxt Version: 4.0.3\n- CLI Version: 3.27.0\n- Nitro Version: 2.12.4\n- Package Manager: pnpm@10.14.0\n- Builder: -\n- User Config: modules, $production, components, devtools, app, css, site, mdc, ui, compatibilityDate, nitro, vite, eslint, fonts, icon, linkChecker, ogImage, seo, sitemap\n- Runtime Modules: @nuxtjs/seo@3.1.0, @vueuse/nuxt@13.7.0, @nuxt/ui@3.3.2, @nuxt/eslint@1.9.0, @nuxt/scripts@0.11.10, motion-v/nuxt@1.7.0, @nuxtjs/mdc@0.17.2\n- Build Modules: -\n\n### Is this bug related to Nuxt or Vue?\n\nNuxt\n\n### Package\n\nv3.x\n\n### Version\n\nv3.3.2\n\n### Reproduction\n\n```vue\n\u003Cscript setup lang=\"ts\">\n// This causes TypeScript error\nconst handleFileChange = (file: File | File[] | null) => {\n console.log(file);\n};\n\u003C/script>\n\n\u003Ctemplate>\n \u003CUFileUpload @update:model-value=\"handleFileChange\" />\n\u003C/template>\n```\n\n### Description\n\nThe `@update:model-value` event handler for `UFileUpload` component emits `unknown` type instead of the documented type `File | File[] | null | undefined`.\n\n**Expected Behavior (per documentation)**\nAccording to the [official documentation](https://ui.nuxt.com/components/file-upload#emits), the `@update:model-value` event should emit:\n- `[value: File | File[] | null | undefined]`\n\n### Additional context\n\n_No response_\n\n### Logs\n\n```shell-script\n\n```",[3211,3212,3213],{"name":3138,"color":3139},{"name":3141,"color":3142},{"name":3144,"color":3145},4852,"Type mismatch: UFileUpload @update:model-value emits unknown instead of documented type","2025-09-01T10:56:13Z","https://github.com/nuxt/ui/issues/4852",0.76691765,{"description":3220,"labels":3221,"number":3226,"owner":3147,"repository":3148,"state":3162,"title":3227,"updated_at":3228,"url":3229,"score":3230},"### Environment\n\n- Operating System: Windows_NT\n- Node Version: v22.14.0\n- Nuxt Version: 3.16.0\n- CLI Version: 3.22.5\n- Nitro Version: 2.11.6\n- Package Manager: pnpm@10.6.1\n- Builder: -\n- User Config: compatibilityDate, devtools, typescript, ssr, app, modules, ui, colorMode, i18n, gtag, icon, robots, pwa, runtimeConfig\n- Runtime Modules: @nuxt/ui@2.21.1, @nuxtjs/i18n@9.3.1, nuxt-gtag@3.0.2, @pinia/nuxt@0.10.1, pinia-plugin-persistedstate/nuxt@4.2.0, @nuxt/icon@1.10.3, @nuxtjs/robots@5.2.6, @vite-pwa/nuxt@0.10.6, @formkit/auto-animate/nuxt@0.8.2\n- Build Modules:\n\n### Is this bug related to Nuxt or Vue?\n\nNuxt\n\n### Version\n\n2.21.1\n\n### Reproduction\n\nhttps://codesandbox.io/p/sandbox/optimistic-http-yz8djj\n\n### Description\n\nThe hover effect doest work when you pass the color as variable. Doesn't work with some colors like indigo, pink, sky...\n\n### Additional context\n\n_No response_\n\n### Logs\n\n```shell-script\n\n```",[3222,3225],{"name":3223,"color":3224},"question","d876e3",{"name":3141,"color":3142},3524,"Button hover effect","2025-03-14T11:52:31Z","https://github.com/nuxt/ui/issues/3524",0.7677677,{"labels":3232,"number":3239,"owner":3147,"repository":3147,"state":3162,"title":3240,"updated_at":3241,"url":3242,"score":3243},[3233,3236],{"name":3234,"color":3235},"3.x","29bc7f",{"name":3237,"color":3238},"pending triage","E99695",13414,"how to make structured data appear in-between the Script (application/ld+json)","2023-01-19T16:55:01Z","https://github.com/nuxt/nuxt/issues/13414",0.76795655,{"description":3245,"labels":3246,"number":3252,"owner":3147,"repository":3147,"state":3162,"title":3253,"updated_at":3254,"url":3255,"score":3256},"**Reproduction**: https://stackblitz.com/edit/github-yg9nsm?file=app.vue\r\n\r\nRegression from https://github.com/nuxt/nuxt/pull/22179, I suspect.",[3247,3248,3249],{"name":3234,"color":3235},{"name":3138,"color":3139},{"name":3250,"color":3251},"❗ p4-important","D93F0B",22748,"textContent of inline payload `\u003Cscript>` tag is not properly escaped","2023-08-23T16:50:54Z","https://github.com/nuxt/nuxt/issues/22748",0.76796186,["Reactive",3258],{},["Set"],["ShallowReactive",3261],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fZYhoBd8IpiRWiHtHe8bPzmi2vrYcL79kP6cTduUtA4k":-1},"/nuxt/scripts/473"]