You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by ac...@apache.org on 2017/08/24 10:35:53 UTC
[05/24] incubator-weex git commit: * [ios] diff hidden property
* [ios] diff hidden property
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/5959413d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/5959413d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/5959413d
Branch: refs/heads/0.16-dev
Commit: 5959413d9fb33074e2c1d2ecbeecec4eb730ee85
Parents: 05d1a4a
Author: acton393 <zh...@gmail.com>
Authored: Tue Aug 1 18:15:05 2017 +0800
Committer: acton393 <zh...@gmail.com>
Committed: Tue Aug 1 18:15:05 2017 +0800
----------------------------------------------------------------------
ios/sdk/WeexSDK/Sources/Model/WXComponent.m | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/5959413d/ios/sdk/WeexSDK/Sources/Model/WXComponent.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Model/WXComponent.m b/ios/sdk/WeexSDK/Sources/Model/WXComponent.m
index c40ccb7..c82d5f9 100644
--- a/ios/sdk/WeexSDK/Sources/Model/WXComponent.m
+++ b/ios/sdk/WeexSDK/Sources/Model/WXComponent.m
@@ -267,8 +267,9 @@
if (_view.isAccessibilityElement != _accessible) {
[_view setIsAccessibilityElement:_accessible];
}
-
- _view.accessibilityElementsHidden = _ariaHidden;
+ if (self.view.accessibilityElementsHidden != _ariaHidden) {
+ _view.accessibilityElementsHidden = _ariaHidden;
+ }
[self _initEvents:self.events];
[self _initPseudoEvents:_isListenPseudoTouch];
@@ -556,7 +557,9 @@
}
if (attributes[@"ariaHidden"]) {
_ariaHidden = [WXConvert BOOL:attributes[@"ariaHidden"]];
- self.view.accessibilityElementsHidden = _ariaHidden;
+ if (self.view.accessibilityElementsHidden != _ariaHidden) {
+ self.view.accessibilityElementsHidden = _ariaHidden;
+ }
}
if (attributes[@"accessible"]) {
_accessible = [WXConvert BOOL:attributes[@"accessible"]];