Nuxt UI v3.0.0-alpha.10
onSelect: () => navigateTo('/login') not working for dropdown
3 Replies
Hi @kitten. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
I apologize, but the knowledge sources provided do not contain enough specific information to answer your question about the
onSelect
event with navigateTo('/login')
not working for a dropdown in Nuxt UI v3.0.0-alpha.10.
However, I can provide some general guidance based on the available information:
1. For navigation in Nuxt 3, it's recommended to use the navigateTo
helper function. According to the Nuxt documentation (https://nuxt.com/docs/api/utils/navigate-to), navigateTo
should be used for programmatic navigation.
2. When using components like dropdowns, it's important to ensure that the navigation occurs after the dropdown interaction is complete.
3. If you're experiencing issues with navigation in a component, you might want to check if the navigation is being triggered correctly and if there are any console errors.
4. For Nuxt UI specific issues, it would be best to check the latest documentation or GitHub issues for the specific version you're using, as alpha versions may have known issues or changes that are not reflected in the general documentation.
If the problem persists, I recommend checking the Nuxt UI GitHub repository for any reported issues related to dropdown navigation in the alpha version you're using, or considering opening a new issue with a minimal reproduction of the problem.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------<@1265695120725119036> Kapa.ai is still learning and improving, please let me know how I did by reacting below.
worked with useRouter().push('/login');
but why doesnt navigateTo('/login'); work?