mirror of https://github.com/gorhill/uBlock.git
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:
parent
bf3671d865
commit
b214ec1bae
|
@ -1687,6 +1687,12 @@ const pickerCSSStyle = [
|
||||||
].join(' !important;');
|
].join(' !important;');
|
||||||
pickerRoot.style.cssText = pickerCSSStyle;
|
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 = [
|
const pickerCSS1 = [
|
||||||
`#${pickerRoot.id} {`,
|
`#${pickerRoot.id} {`,
|
||||||
pickerCSSStyle,
|
pickerCSSStyle,
|
||||||
|
|
Loading…
Reference in New Issue