How to avoid printing hidden on canvas when using window.document.body.style.overflowY=“hidden” in React.js?

前端 未结 0 542
心在旅途
心在旅途 2020-12-10 21:04

I have created a modal component in React.js and to avoid body scroll when modal is open I am using the below statement to restrict the page scroll when modal is open.

<
相关标签:
回答
  • 消灭零回复
提交回复
热议问题