Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[USelectMenu] regex error on filtering special characters (.,) #2308

Closed
gertaMng opened this issue Oct 4, 2024 · 4 comments
Closed

[USelectMenu] regex error on filtering special characters (.,) #2308

gertaMng opened this issue Oct 4, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@gertaMng
Copy link

gertaMng commented Oct 4, 2024

Environment

  • Operating System: Darwin
  • Node Version: v18.15.0
  • Nuxt Version: 3.12.4
  • CLI Version: 3.12.0
  • Nitro Version: 2.9.7
  • Package Manager: [email protected]
  • Builder: -
  • User Config: extends, uiPro, typescript, colorMode, runtimeConfig, imports, app, compatibilityDate
  • Runtime Modules: -
  • Build Modules: -

Version

v2.18.4

Reproduction

https://stackblitz.com/edit/nuxt-ui-ucgnmg?file=app.vue

Description

USelectMenu throws regex error while filtering special chars, the select stops filtering, but in the console it throws the following error:
DaS55lpH.js:14 SyntaxError: Invalid regular expression: /(/i: Unterminated group (at DaS55lpH.js:39:107506)
at new RegExp ()
at DaS55lpH.js:39:107506
at Array.some ()
at DaS55lpH.js:39:107428
at u (DaS55lpH.js:10:7546)
at Array.filter ()
at Do (DaS55lpH.js:10:7636)
at Proxy.filter (DaS55lpH.js:10:6121)
at xz.fn (DaS55lpH.js:39:107324)
at DC (DaS55lpH.js:10:3093)

It is reproducable even on official documentation.

Additional context

No response

Logs

No response

@gertaMng gertaMng added bug Something isn't working triage labels Oct 4, 2024
@enegandev
Copy link

Hi Gerta,

I'm having the same problem as you.

Image

Im currently using nuxt/ui-pro 1.4.0
I hope there will be another release with a solution and not solve it with a workaround.

@benjamincanac @smarroufin

Copy link
Member

Thanks for the report! Never noticed that before 😬

@gertaMng
Copy link
Author

@benjamincanac Thank you for the quick response! On which version of nuxt/ui-pro do I find the fix?

Copy link
Member

This component belongs to nuxt/ui and it hasn't been released yet. You can however use the Edge package: @nuxt/[email protected]

https://ui.nuxt.com/getting-started/installation#edge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants