Topic: Binding action to mdb dropdown item

Rogelio Sanchez free asked 5 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

enter image description here


Rogelio Sanchez free answered 5 years ago


Thank you so much Mikolaj, Greetings.


Mikołaj Smoleński staff answered 5 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



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue

  • ForumUser: 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
Tags