Topic: Binding action to mdb dropdown item
Rogelio Sanchez asked 6 years ago
Expected behavior I want to bind an action to a mdb-dropdown-item in my navbar
As you see I'm trying to use v-on directive, but it's not working.
How can I properly bind an action to this element? Actual behavior Action not triggered Resources (screenshots, code snippets etc.) Code
Mikołaj Smoleński staff answered 6 years ago
Hi there,
To bind action to an imported component You need to use native
modifier.
It should be v-on.native...
.
Best regards
Rogelio Sanchez answered 6 years ago
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Resolved
- User: Free
- Premium support: No
- Technology: MDB Vue
- MDB Version: 5.1.1
- Device: Mac
- Browser: Google Chrome
- OS: macOs High Sierra
- Provided sample code: No
- Provided link: No