mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 22:36:31 +08:00
site: fix scroll to current hash in chrome
This commit is contained in:
parent
d0c58946ee
commit
a2018e7c44
@ -71,7 +71,7 @@ export default class MainContent extends React.Component {
|
||||
}
|
||||
this.timer = setTimeout(() => {
|
||||
if (window.location.hash) {
|
||||
window.location.hash = window.location.hash;
|
||||
document.querySelector(window.location.hash).scrollIntoView();
|
||||
}
|
||||
}, 10);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user