mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-12 09:21:11 +00:00
7e81c26712
Previously, we relied on setting pointer-events:none on all child elements of ToC links. This propagated the click event up to the link itself in Javascript and allowed us check if an element with the class `.sidebar-toc-link` was clicked. Unfortunately as of Chromium 101 this approach causes the entire link in the sidebar to be unclickable. Instead, this patch checks if the ToC link or any of it's children have been clicked (using the less efficient `Element.closest()` ). Bug: T307271 Change-Id: I2264b7862f6e1ef50c5c722daee81acc39eea54e |
||
---|---|---|
.. | ||
components | ||
images | ||
layouts | ||
skin.less |