Полоса прокрутки и прокрутка отключены в родительском элементе (с параметром «overflow-y», установленным в «scroll») внутри компонента в дочерних элементах маршрутизатора. Почему он ведет себя так, и как мне предотвратить его / заставить его работать?
демо здесь: https://codesandbox.io/s/priceless-johnson-1fkju
import React from "react";
import { Router } from "@reach/router";
import Chats from "./Chats";
import { TopBar, AndroidControls } from "../components/shared";
const Routing = () => {
return (
<div className="app-wrapper">
<TopBar />
{* <section className="content"> *} // So i tested this, the section element need to be outside of the router comp for it to work , why?
<Router>
<Chats path="/" />
</Router>
{/* </section> *}
<AndroidControls />
</div>
);
};
export default Routing;