You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by wa...@apache.org on 2020/07/02 14:31:00 UTC
[incubator-echarts-doc] branch master updated: fixed a typo and
tweaked the comment.
This is an automated email from the ASF dual-hosted git repository.
wangzx pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-echarts-doc.git
The following commit(s) were added to refs/heads/master by this push:
new eec88e8 fixed a typo and tweaked the comment.
eec88e8 is described below
commit eec88e80d7cd4f283b0e24f126b1078f3d9db464
Author: plainheart <yh...@all-my-life.cn>
AuthorDate: Thu Jul 2 22:30:00 2020 +0800
fixed a typo and tweaked the comment.
---
src/components/DocContent.vue | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/components/DocContent.vue b/src/components/DocContent.vue
index 54b3920..144f432 100644
--- a/src/components/DocContent.vue
+++ b/src/components/DocContent.vue
@@ -168,8 +168,8 @@ export default {
offset += this.$refs.liveExample.$el.offsetHeight;
}
// previous usage: document.querySelector('#' + convertPathToId(path))
- // `$` can't exist in selector when using `document.querySelector`,
- // use `document.getElementById` insead.
+ // Some special characters like `$` are not allowed in selector when using `document.querySelector`,
+ // use `document.getElementById` instead.
scrollIntoView(document.getElementById(convertPathToId(path)), {
time: time || 400,
align: {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org