Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix navigation failed of anchor element. #95

Merged
merged 2 commits into from
Mar 29, 2021
Merged

fix: fix navigation failed of anchor element. #95

merged 2 commits into from
Mar 29, 2021

Conversation

andycall
Copy link
Member

Closes #72

@@ -25,7 +25,7 @@ mixin EventHandlerMixin on Node {
renderBoxModel.onPointerMove = handlePointMove;
renderBoxModel.onPointerUp = handlePointUp;
renderBoxModel.onPointerCancel = handlePointCancel;
renderBoxModel.onClick = dispatchEvent;
renderBoxModel.onClick = handleClick;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

handleClick 的实现也就是 Event 参数的透传,没必要封装一层 handleClick 吧。

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A 标签里面需要劫持 click 行为的操作

@@ -365,6 +365,8 @@ class KrakenViewController {
} catch (e, stack) {
if (navigationDelegate.errorHandler != null) {
navigationDelegate.errorHandler(e, stack);
} else {
print('Kraken navigation failed: $e\n$stack');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

参考 Chrome 的用语习惯 (我们在 Bridge 里有使用类似的).

image

Kraken: Failed to navigate to "$sourceUrl". 会更合适一些.

Kraken navigation failed 直译是中文语法习惯.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这有区别吗?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@answershuto
Copy link
Member

需补充用例

@andycall
Copy link
Member Author

需补充用例

现在还测不了

@wssgcg1213
Copy link
Member

wssgcg1213 commented Mar 26, 2021

Can't approve, cc @temper357 @answershuto to review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

A 标签无法正常跳转
4 participants