-
Notifications
You must be signed in to change notification settings - Fork 304
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
Conversation
@@ -25,7 +25,7 @@ mixin EventHandlerMixin on Node { | |||
renderBoxModel.onPointerMove = handlePointMove; | |||
renderBoxModel.onPointerUp = handlePointUp; | |||
renderBoxModel.onPointerCancel = handlePointCancel; | |||
renderBoxModel.onClick = dispatchEvent; | |||
renderBoxModel.onClick = handleClick; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
handleClick 的实现也就是 Event 参数的透传,没必要封装一层 handleClick 吧。
There was a problem hiding this comment.
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'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这有区别吗?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
需补充用例 |
现在还测不了 |
Can't approve, cc @temper357 @answershuto to review. |
Closes #72