Topic: emit event after the user pressed the tab and before tab change

eladhr83 free asked 4 years ago


Is there a way to listen to an event that is fired on clicking the tab and if necessary prevent the tab change?

example:user press on tab -> event fired -> if some condition is not filled prevent tab transfer.

thank you very much :).

Mikołaj Smoleński staff commented 4 years ago

To make it work I suggest to use mdb-tab component with all it's children and events. The example is available here:

Best regards

Please insert min. 20 characters.


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



Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB Vue
  • MDB Version: 6.5.0
  • Device: pc
  • Browser: chrome
  • OS: ubuntu
  • Provided sample code: No
  • Provided link: No