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

Commit

Permalink
setUserInteractionEnabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Txink committed Aug 9, 2019
1 parent 71268b5 commit b8ac8fa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ios/sdk/WeexSDK/Sources/Model/WXComponent.mm
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,9 @@ - (UIView *)view
_view.wx_component = self;
_view.wx_ref = self.ref;
_layer.wx_component = self;


[_view setUserInteractionEnabled:_userInteractionEnabled];

if (_roles) {
[_view setAccessibilityTraits:[self _parseAccessibilityTraitsWithTraits:self.view.accessibilityTraits roles:_roles]];
}
Expand All @@ -424,9 +426,7 @@ - (UIView *)view
if (_accessible) {
[_view setIsAccessibilityElement:[WXConvert BOOL:_accessible]];
}
if (_userInteractionEnabled) {
[_view setUserInteractionEnabled:_userInteractionEnabled];
}

if (_ariaHidden) {
[_view setAccessibilityElementsHidden:[WXConvert BOOL:_ariaHidden]];

Expand Down

0 comments on commit b8ac8fa

Please sign in to comment.