Skip to content

Commit

Permalink
Restore some guards in ReactFabricGlobalResponderHandler after refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
rubennorte committed Mar 15, 2023
1 parent cfc1274 commit 51a9d28
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

const ReactFabricGlobalResponderHandler = {
onChange: function (from: any, to: any, blockNativeResponder: boolean) {
if (from) {
if (from && from.stateNode) {
// equivalent to clearJSResponder
nativeFabricUIManager.setIsJSResponder(
from.stateNode.node,
Expand All @@ -18,7 +18,7 @@ const ReactFabricGlobalResponderHandler = {
);
}

if (to) {
if (to && to.stateNode) {
// equivalent to setJSResponder
nativeFabricUIManager.setIsJSResponder(
to.stateNode.node,
Expand Down

0 comments on commit 51a9d28

Please sign in to comment.