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

Numbers in InputMenu component cause error in filter #3606

Open
ExXTreMe315 opened this issue Mar 18, 2025 · 0 comments
Open

Numbers in InputMenu component cause error in filter #3606

ExXTreMe315 opened this issue Mar 18, 2025 · 0 comments
Labels
bug Something isn't working triage v3 #1289

Comments

@ExXTreMe315
Copy link

Environment

Is this bug related to Nuxt or Vue?

Nuxt

Version

v3.0.0

Reproduction

<template>
  <div>
    <UInputMenu :items="idList" v-model="value" />
  </div>
</template>

<script lang="ts" setup>
const value = ref(0)
const idList = ref([168, 170, 203])
</script>

Description

If adding array of numbers to InputMenu the menu isn't closing after choosing a number.
Only way to close it is double-clicking on the dropdown arrow.
The Console shows an error in useFilter.

Additional context

Image

Image

Logs

Uncaught (in promise) TypeError: string.normalize is not a function
    at contains (useFilter.js?v=87101672:23:21)
    at InputMenu.vue:114:18
    at wrappedFn (reactivity.esm-bundler.js?v=87101672:820:19)
    at Array.filter (<anonymous>)
    at apply (reactivity.esm-bundler.js?v=87101672:828:27)
    at Proxy.filter (reactivity.esm-bundler.js?v=87101672:720:12)
    at InputMenu.vue:112:50
    at Array.map (<anonymous>)
    at ComputedRefImpl.fn (InputMenu.vue:112:27)
    at refreshComputed (reactivity.esm-bundler.js?v=87101672:353:29)
@ExXTreMe315 ExXTreMe315 added bug Something isn't working triage v3 #1289 labels Mar 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage v3 #1289
Projects
None yet
Development

No branches or pull requests

1 participant