flowfixme
This commit is contained in:
parent
599f9e106e
commit
19275f8f3d
1 changed files with 1 additions and 0 deletions
|
@ -14,6 +14,7 @@ function PublishPage(props: Props) {
|
||||||
function scrollToTop() {
|
function scrollToTop() {
|
||||||
const mainContent = document.querySelector('main');
|
const mainContent = document.querySelector('main');
|
||||||
if (mainContent) {
|
if (mainContent) {
|
||||||
|
// $FlowFixMe
|
||||||
mainContent.scrollTo({
|
mainContent.scrollTo({
|
||||||
top: 0,
|
top: 0,
|
||||||
behavior: 'smooth',
|
behavior: 'smooth',
|
||||||
|
|
Loading…
Add table
Reference in a new issue