Skip to content

Commit a789ead

Browse files
cyrus25facebook-github-bot
authored andcommitted
Make style pointerEvents take priority over pointerEvents prop (#34597)
Summary: Make style pointerEvents take priority over pointerEvents prop. Fixes requested changes in #34586 ## Changelog <!-- Help reviewers and the release process by writing your own changelog entry. For an example, see: https://reactnative.dev/contributing/changelogs-in-pull-requests --> [General] [Fixed] - Make style pointerEvents take priority over pointerEvents prop. FIxes requested changes in #34586 Pull Request resolved: #34597 Test Plan: Will rely on green cli Reviewed By: NickGerleman Differential Revision: D39269306 Pulled By: cipolleschi fbshipit-source-id: 0927bf6ad7e3ac63e82dbd1a873532152f29001d
1 parent bf6a24b commit a789ead

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Libraries/Components/View/View.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ const View: React.AbstractComponent<
108108
treeitem: undefined,
109109
};
110110

111-
const flattendStyle = flattenStyle(style);
112-
const newPointerEvents = pointerEvents || flattendStyle?.pointerEvents;
111+
const flattenedStyle = flattenStyle(style);
112+
const newPointerEvents = flattenedStyle?.pointerEvents || pointerEvents;
113113

114114
return (
115115
<TextAncestor.Provider value={false}>

0 commit comments

Comments
 (0)