Skip to content

fix: 31101 Eye icon to show password on password protected PDF file is not working #31176

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Nov 15, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions patches/react-native-web+0.19.9+003+fix-pointer-events.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
diff --git a/node_modules/react-native-web/src/exports/StyleSheet/compiler/index.js b/node_modules/react-native-web/src/exports/StyleSheet/compiler/index.js
index 639f532..524c13f 100644
--- a/node_modules/react-native-web/src/exports/StyleSheet/compiler/index.js
+++ b/node_modules/react-native-web/src/exports/StyleSheet/compiler/index.js
@@ -385,13 +385,14 @@ function createAtomicRules(identifier: string, property, value): Rules {
finalValue = 'auto!important';
if (value === 'box-only') {
const block = createDeclarationBlock({ pointerEvents: 'none' });
- rules.push(`${selector}>*${block}`);
+ rules.push(`${selector} *${block}`);
}
} else if (value === 'none' || value === 'box-none') {
finalValue = 'none!important';
if (value === 'box-none') {
const block = createDeclarationBlock({ pointerEvents: 'auto' });
- rules.push(`${selector}>*${block}`);
+ rules.push(`${selector} *${block}`);
}
}
const block = createDeclarationBlock({ pointerEvents: finalValue });