Dropdown: UpArrow triggers "Uncaught TypeError: this.visibleOptions.slice(...).findLastIndex is not a function" Firefox, Nuxt 3 #2872
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
In Firefox from a Nuxt 3 app. When navigating the Dropdown options via keyboard, if any option other than the top is highlighted then pressing the up arrow key will trigger an error shown in the console as:
Uncaught TypeError: this.visibleOptions.slice(...).findLastIndex is not a function
To Reproduce from a shell with node v18.1.0 installed.
Add below code to the primevue.ts file that you just created:
Now update nuxt.config.ts
And create the test page:
And add the code below:
Now update app.vue and change
<NuxtWelcome />
to<NuxtPage />
And finally:
yarn run dev
Reproducer
No response
PrimeVue version
13.16.1
Vue version
3.x
Language
TypeScript
Build / Runtime
Nuxt
Browser(s)
Firefox 103.0.2 (64-bit)
Steps to reproduce the behavior
Expected behavior
When hitting the up arrow the first item "Australia" should be highlighted with no error in the console.
The text was updated successfully, but these errors were encountered: