Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
When clicking a contextual edit link, or any link that launches the overlay, the contextual menu remains present. It should be dismissed. This is occurring because the contextual menu is dismissed on mouseleave or blur -- apparently neither event is fired in this case.
Here's a screenshot of the issue:
Proposed resolution
Find another event to trigger the links to close when a contextual link is clicked.
Remaining tasks
User interface changes
None.
API changes
None.
Comment | File | Size | Author |
---|---|---|---|
#1 | contextual-gears-bug-1910008-1.patch | 1.37 KB | jessebeach |
persistent-contextual-menu.png | 32.01 KB | jessebeach |
Comments
Comment #1
jessebeach CreditAttribution: jessebeach commentedThis patch adds a
click
handler that dimisses the highlighted region (thus dismissing the contextual links) when a contextual link is clicked or when enter is pressed on it.Comment #2
Wim LeersLovely :)
Comment #3
Gábor HojtsyLooks good to me too :)
Comment #4
yoroy CreditAttribution: yoroy commentedI ran into this reviewing the edit in place stuff. Maybe we should verify the patch works by manually testing first before RTBC? :-)
Comment #5
yoroy CreditAttribution: yoroy commentedAh double post and a human review. Ok!
Comment #6
webchickCommitted to 8.x. Thanks!
I'll push when testbot has caught up a bit.