\n \u003CUInput v-model=\"state.name1\" placeholder=\"...\" />\n\u003C/UModal>\n```\n\nWhen a modal contains one or more input boxes, the first input box will always get focus automatically.\nIf I manually add a close button in the upper right corner, it will trigger a validation when I click it. This is not good. How can I avoid the input box getting focus when opening the modal?\n\n### Additional context\n\n\n\n\n### Logs\n\n```shell-script\n\n```",[2043,2044],{"name":1985,"color":1986},{"name":2012,"color":2013},3062,"The input box in the modal will automatically gain focus","2025-01-10T08:36:56Z","https://github.com/nuxt/ui/issues/3062",0.6930738,{"description":2051,"labels":2052,"number":2053,"owner":1988,"repository":2054,"state":2055,"title":2056,"updated_at":2057,"url":2058,"score":2059},"Allow users to switch between JS/TS when browsing the docs.\n\n- [ ] 0. Design: Can take inspiration from [VueJS docs sidebar](https://vuejs.org/guide/introduction.html) or [SvelteKit bottom of sidebar](https://kit.svelte.dev/docs/introduction)\n- [ ] 1. Prepare components (CodeBlock / CodeGroup)\n- [ ] 2. Update code snippets\n- [ ] 3. Prepare website (store preference in localstorage)\n\nBonus point:\n- [ ] Allow the switch on examples (could be time-consuming when creating examples, let's discuss this point later maybe)\n\n",[],1121,"nuxt.com","closed","[Docs] TS/JS switcher","2023-10-10T14:45:07Z","https://github.com/nuxt/nuxt.com/issues/1121",0.6500322,{"description":2061,"labels":2062,"number":2066,"owner":1988,"repository":2054,"state":2055,"title":2067,"updated_at":2068,"url":2069,"score":2070},"- [x] `/modules`\n- [x] `/community/repositories`\n- [x] `/community/nuxters`\n\n\n",[2063],{"name":2064,"color":2065},"enhancement","1ad6ff",613,"Pages with search should have an empty state","2023-02-15T12:32:39Z","https://github.com/nuxt/nuxt.com/issues/613",0.6733285,{"description":2072,"labels":2073,"number":2066,"owner":1988,"repository":2083,"state":2055,"title":2084,"updated_at":2085,"url":2086,"score":2070},"When I had been running tests using the `@nuxt/test-utils` library I could get results like:\r\n\r\n```bash\r\n Test Files 1 failed | 1 passed (2)\r\n Tests 1 failed | 1 passed (2)\r\n Start at 14:49:45\r\n Duration 2.13s (transform 696ms, setup 0ms, collect 1.49s, tests 14ms, environment 434ms, prepare 381ms)\r\n```\r\n\r\nBut because I was having trouble with Nuxt imports like `ReferenceError: useRuntimeConfig is not defined`, I've made changes to switch over to using this library. Unfortunately, I cannot figure out how to get the tests to actually run or at least error out. Instead, I just get this:\r\n\r\n```bash\r\n$ npm run test\r\n\r\n> project@1.0.0 test\r\n> vitest --config ./vitest.config.ts run\r\n\r\n RUN v0.33.0 .../project/test\r\n```\r\n\r\nHere are some relevant file contents...\r\n\r\n### package.json\r\n\r\n```json\r\n{\r\n \"name\": \"project\",\r\n \"version\": \"1.0.0\",\r\n \"description\": \"\",\r\n \"private\": true,\r\n \"type\": \"module\",\r\n \"engines\": {\r\n \"node\": \"18\"\r\n },\r\n \"scripts\": {\r\n \"dev\": \"nuxt dev\",\r\n \"generate\": \"nuxt generate\",\r\n \"preview\": \"nuxt preview\",\r\n \"prepare\": \"nuxt prepare\",\r\n \"build\": \"NITRO_PRESET=aws-lambda nuxt build\",\r\n \"deploy\": \"DEPLOY=true TIER=$TIER NITRO_PRESET=aws-lambda nuxt build && sls deploy --stage $TIER\",\r\n \"offline\": \"npm run build && sls offline start\",\r\n \"debug\": \"SLS_DEBUG=* node --inspect node_modules/serverless/bin/serverless offline\",\r\n \"test\": \"vitest --config ./vitest.config.ts run\",\r\n \"test:watch\": \"vitest --config ./vitest.config.ts watch\",\r\n \"lint:js\": \"eslint --ext \\\".ts,.vue\\\" --ignore-path .gitignore .\",\r\n \"lint:prettier\": \"prettier --check .\",\r\n \"lint\": \"npm run lint:js && npm run lint:prettier\",\r\n \"lintfix\": \"prettier --write --list-different . && eslint --ext \\\".ts,.vue\\\" --ignore-path .gitignore . --fix\",\r\n \"coverage\": \"vitest run --coverage --config ./vitest.config.ts\",\r\n \"postinstall\": \"patch-package\"\r\n },\r\n \"devDependencies\": {\r\n \"@babel/cli\": \"^7.23.0\",\r\n \"@babel/core\": \"^7.23.2\",\r\n \"@nuxt/test-utils\": \"^3.8.0\",\r\n \"@nuxtjs/eslint-config-typescript\": \"^12.1.0\",\r\n \"@nuxtjs/eslint-module\": \"^4.1.0\",\r\n \"@nuxtjs/partytown\": \"^1.3.0\",\r\n \"@pinia-plugin-persistedstate/nuxt\": \"^1.1.2\",\r\n \"@serverless/typescript\": \"^3.30.1\",\r\n \"@types/aws-lambda\": \"^8.10.125\",\r\n \"@types/crypto-js\": \"^4.1.3\",\r\n \"@types/eslint\": \"^8.44.6\",\r\n \"@types/node\": \"^20.8.10\",\r\n \"@types/papaparse\": \"^5.3.10\",\r\n \"@types/pdfmake\": \"^0.2.7\",\r\n \"@types/uuid\": \"^9.0.6\",\r\n \"@typescript-eslint/parser\": \"^6.9.1\",\r\n \"@vitejs/plugin-vue\": \"^4.4.0\",\r\n \"@vitest/coverage-v8\": \"^0.33.0\",\r\n \"@vue/compiler-sfc\": \"^3.3.4\",\r\n \"@vue/test-utils\": \"^2.4.1\",\r\n \"@vueuse/nuxt\": \"^10.5.0\",\r\n \"eslint\": \"^8.52.0\",\r\n \"eslint-config-prettier\": \"^9.0.0\",\r\n \"eslint-plugin-nuxt\": \"^4.0.0\",\r\n \"eslint-plugin-prettier\": \"^5.0.1\",\r\n \"eslint-plugin-vitest\": \"^0.3.9\",\r\n \"happy-dom\": \"^12.10.3\",\r\n \"jsdom\": \"^22.1.0\",\r\n \"naive-ui\": \"^2.35.0\",\r\n \"nuxt\": \"^3.8.0\",\r\n \"nuxt-icon\": \"^0.6.1\",\r\n \"nuxt-lodash\": \"^2.5.3\",\r\n \"nuxt-viewport\": \"^2.0.6\",\r\n \"nuxt-vitest\": \"^0.11.2\",\r\n \"patch-package\": \"^8.0.0\",\r\n \"prettier\": \"^3.0.3\",\r\n \"sass\": \"^1.69.5\",\r\n \"sass-loader\": \"^13.3.2\",\r\n \"serverless-offline\": \"^13.2.0\",\r\n \"serverless-s3-sync\": \"^3.2.0\",\r\n \"typescript\": \"^5.2.2\",\r\n \"unplugin-auto-import\": \"^0.16.7\",\r\n \"unplugin-vue-components\": \"^0.25.2\",\r\n \"vitest\": \"^0.33.0\",\r\n \"vue\": \"^3.3.7\",\r\n \"vue-tsc\": \"^1.8.22\"\r\n },\r\n \"dependencies\": {\r\n \"@css-render/vue3-ssr\": \"^0.15.12\",\r\n \"@pinia/nuxt\": \"^0.5.1\",\r\n \"buffer\": \"^6.0.3\",\r\n \"crypto-js\": \"^4.2.0\",\r\n \"dayjs\": \"^1.11.10\",\r\n \"deep-object-diff\": \"^1.1.9\",\r\n \"deepdash-es\": \"^5.3.9\",\r\n \"jszip\": \"^3.10.1\",\r\n \"marked\": \"^9.1.5\",\r\n \"mitt\": \"^3.0.1\",\r\n \"papaparse\": \"^5.4.1\",\r\n \"pdfmake\": \"^0.2.7\",\r\n \"pinia\": \"^2.1.7\",\r\n \"slugify\": \"^1.6.6\",\r\n \"uuid\": \"^9.0.1\"\r\n },\r\n \"overrides\": {}\r\n}\r\n```\r\n\r\n### nuxt.config.ts\r\n\r\n```typescript\r\n modules: [\r\n \"nuxt-vitest\",\r\n ...\r\n ],\r\n```\r\n\r\n### vitest.config.ts\r\n\r\n```typescript\r\nimport { defineVitestConfig } from \"nuxt-vitest/config\";\r\n\r\nexport default defineVitestConfig({\r\n plugins: [],\r\n test: {\r\n globals: true,\r\n environment: \"jsdom\",\r\n environmentOptions: {\r\n nuxt: {\r\n overrides: {},\r\n },\r\n },\r\n },\r\n root: \"./test\",\r\n});\r\n```\r\n\r\n### project/test/example.nuxt.test.ts\r\n\r\n```typescript\r\nimport { test, expect } from \"vitest\";\r\n\r\ntest(\"1 + 1\", () => {\r\n expect(1 + 1).toEqual(2);\r\n});\r\n```",[2074,2077,2080],{"name":2075,"color":2076},"vitest-environment","b60205",{"name":2078,"color":2079},"needs reproduction","DE7793",{"name":2081,"color":2082},"closed-by-bot","ededed","test-utils","Vitest hangs at [RUN] v0.33.0 with no debug output or error","2023-12-14T12:31:18Z","https://github.com/nuxt/test-utils/issues/613",{"description":2088,"labels":2089,"number":2091,"owner":1988,"repository":1989,"state":2055,"title":2092,"updated_at":2093,"url":2094,"score":2095},"### 🐛 The bug\n\n> You are correct $script.remove() works but still requires the $script.entry = undefined; if you ever wanted to reload the script.\n\n### 🛠️ To reproduce\n\n-\n\n### 🌈 Expected behavior\n\n-\n\n### ℹ️ Additional context\n\n_No response_",[2090],{"name":1985,"color":1986},334,"Removing a script won't let you reload it","2024-12-08T02:26:36Z","https://github.com/nuxt/scripts/issues/334",0.6733888,["Reactive",2097],{},["Set"],["ShallowReactive",2100],{"TRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"KZWI_H6E73nj5MwMictH5Ch-EQKS8F_4ogtSLZuEh-E":-1},"/nuxt/nuxt.com/402"]