Dropdown menu not working in vue 3 components #36645
Replies: 7 comments 2 replies
-
Thanks for reporting this issue @realrecordzLab. Would it be possible to have a running example directly in StackBlitz (or another tool)? It would save us time not having to create a Vue.js environment to test it. |
Beta Was this translation helpful? Give feedback.
-
@julien-deramond here is the StackBlitz link The strange thing is that on stackbiz the dropdown seems working fine, but this will not occur in my local app where to get the dropdown working I have used the js plugin and some css to fix the positioning that was wrong. I had the same problem with the accordion that will not be closed after expanded, but I don't know why these problem occur. |
Beta Was this translation helpful? Give feedback.
-
Since it doesn't seem to be an issue with Bootstrap directly, I transformed this issue in a discussion to help you fix it. In your description I can see |
Beta Was this translation helpful? Give feedback.
-
For those who've got the same issue: if you're using |
Beta Was this translation helpful? Give feedback.
-
I have the same issue. It was working until I update it. |
Beta Was this translation helpful? Give feedback.
-
Hello ! In the main.ts or main.js
I commented bootstrap.bundle.min.js import Then, in the component
That's all 😊 |
Beta Was this translation helpful? Give feedback.
-
execute the following commands:
Remember to restart the project with: |
Beta Was this translation helpful? Give feedback.
-
Prerequisites
Describe the issue
I have this code in my vue 3 app. I'm trying to use doropdown menu in my components but they will not work.
Here is my code
main.js file
Home.vue component code
As you can see I've imported bootstrap globally in my vue app and also I've imported the needed js file and popper js.
How I can fix this? It's a very annoying problem to be not able to use dropdown for some front-end things.
Thank you for the help
Reduced test cases
No link available
What operating system(s) are you seeing the problem on?
macOS
What browser(s) are you seeing the problem on?
Chrome
What version of Bootstrap are you using?
v5.2
Beta Was this translation helpful? Give feedback.
All reactions