Forgotten jQuery function for dropdown menu toggle breaks functionality for multilevel dropdowns

Created on 7 October 2024, about 2 months ago

Problem/Motivation

The current implementation of the dropdown menu relies on jQuery for toggling functionality for multilevel dropdowns. However, the project has removed the jQuery dependency, causing the dropdown functionality to break.

Uncaught TypeError: event.target.next is not a function

Steps to reproduce

  • Navigate to a page with a dropdown menu.
  • Click on a dropdown item with the class .dropdown-item a.dropdown-toggle.
  • Observe that the dropdown functionality does not work due to the absence of jQuery.

Proposed resolution

Refactor the code to use vanilla JavaScript for the dropdown toggle functionality.

User interface changes

None

API changes

None

Data model changes

None

🐛 Bug report
Status

Active

Version

5.5

Component

Code

Created by

🇹🇷Turkey makbay

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024