I needed the ability to adjust the styling based on whether the dropdown is visible or hidden.
Attached is a patch that adds a class "jquery_dropdown_expanded" to the jquery_dropdown_container element to allow for toggling styles when the dropdown is visible.
You'll notice in the patch that I utilized variables to prevent duplicate "j" queries. ($container and $dropdown)
The patch was made again 6.x-1.2. I can re-roll it against the dev version if necessary.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | jquery-dropdown-expanded-1049084-3.patch | 1.7 KB | lee20 |
| jquery-dropdown-expanded.patch | 1.49 KB | lee20 |
Comments
Comment #1
lee20 commentedThe patch only accounts for the click events and fails to apply or remove the expanded class when the dropdown is hidden on mouseout.
Comment #2
lee20 commentedAttached is a patch that includes the patch from my initial post and also accounts for the issue in #1.