1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-02 00:42:45 +01:00

Ensure pointer-events style is set to auto at element picker launch

Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/393
This commit is contained in:
Raymond Hill 2019-01-23 17:11:07 -05:00
parent bf3671d865
commit b214ec1bae
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -1687,6 +1687,12 @@ const pickerCSSStyle = [
].join(' !important;');
pickerRoot.style.cssText = pickerCSSStyle;
// https://github.com/uBlockOrigin/uBlock-issues/issues/393
// This needs to be injected as an inline style, *never* as a user styles,
// hence why it's not added above as part of the pickerCSSStyle
// properties.
pickerRoot.style.setProperty('pointer-events', 'auto', 'important');
const pickerCSS1 = [
`#${pickerRoot.id} {`,
pickerCSSStyle,