[go: nahoru, domu]

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

Commit

Permalink
[iOS] Fire event when span within an a-label is clicked.
Browse files Browse the repository at this point in the history
* feature: If a span is clicked which is in an a-label of a richtext component, an itemclick event will be fired.
* demo: http://editor.weex.io/p/sunshl/Contribute/commit/b21e1133830b48767c6d00d712e415b2
* doc pr: apache/incubator-weex-site#362
  • Loading branch information
huanglei.hl committed Mar 28, 2019
1 parent 36dce32 commit cce5b0c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ios/sdk/WeexSDK/Sources/Component/WXRichText.mm
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,9 @@ - (void)fillAttributes:(NSDictionary *)attributes toNode:(WXRichNode *)node supe
}
else if (superNode.href) {
node.href = superNode.href;
if (!(node.pseudoRef.length) && superNode.pseudoRef.length) {
node.pseudoRef = superNode.pseudoRef;
}
}

if (attributes[@"src"]) {
Expand Down

0 comments on commit cce5b0c

Please sign in to comment.