Topic: Tree view - event listener vs jQuery .on

meesha81 priority asked 2 months ago


I would like to ask you, if is possible to catch events of treeview via

jQuery by $('.class').on('activeItem.mdb.treeview')

or only javascript

addEventListener('activeItem.mdb.treeview'..) possible.

I am not sure if I am doing something wrong when jQuery code is not able to catch that event or if it is correct and only javascript addEventListener is correct.


Grzegorz Bujański staff answered 2 months ago


It seems that the problem is not with the plugin itself. In another component, I also couldn't use jQ to listen to the event. We will check it and try to fix it. For now, use addEventListener as a workaround.


meesha81 priority commented 2 months ago

Yes, no other function can be catch by jQ, but i wanna provide one particular case. We use addEventListener but with more and more time spent with MDB I found out that it can be "problem".



Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Answered

Specification of the issue

  • User: Priority
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 6.1.0
  • Device: PC
  • Browser: CHROME
  • OS: WIN11
  • Provided sample code: No
  • Provided link: No