mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 09:07:54 +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:
parent
bf3671d865
commit
b214ec1bae
1 changed files with 6 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue