Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
Avoid wx_component nil
Browse files Browse the repository at this point in the history
  • Loading branch information
Txink committed Aug 9, 2019
1 parent 5f586c3 commit 11afad8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/sdk/WeexSDK/Sources/View/WXView.m
Expand Up @@ -40,7 +40,7 @@ - (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event

UIView* result = [super hitTest:point withEvent:event];
if (result) {
if (self.wx_component->_eventPenetrationEnabled && result == self) {
if (self.wx_component && self.wx_component->_eventPenetrationEnabled && result == self) {
return nil;
}
return result;
Expand Down

0 comments on commit 11afad8

Please sign in to comment.