Topic: Dropdown events are not working

meesha81 priority asked 2 weeks ago


Hi, there is probably problem with catching Dropdown events.

I.) HTML initialization - "show" event only can be catched

II.) JS initialization - no event can be catched

Snippet: https://mdbootstrap.com/snippets/standard/meesha81/6410465#

Is there any bug with usage on my side or Dropdown component has not working events?


Kamila Pieńkowska staff answered 2 weeks ago


You must attach your listeners to an element with a dropdown class, not an actual button.

Here is your snippet fixed: https://mdbootstrap.com/snippets/standard/kpienkowska/6411126



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

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 9.0.0
  • Device: PC
  • Browser: Chrome/Firefox
  • OS: Win11
  • Provided sample code: No
  • Provided link: Yes