Binding action to mdb dropdown item


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

enter image description here


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


Thank you so much Mikolaj, Greetings.


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
  • 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