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
1 changed files with 6 additions and 0 deletions

View File

@ -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,