每次在React.js中执行渲染时,UI都会滚动到页面顶部。有什么好的或被动的方法来阻止这种情况吗?例如,如果用户向下滚动页面,然后按下导致呈现的按钮,则UI将停留在与以前相同的滚动位置。// Forces a render which scrolls to top of page更新:为什么某些渲染的UI会滚动到顶部,而其他渲染则不会
播放器的iframe js代码中包含以下代码: var t = e.playButton;如果可能的话,我们想要防止这种情况发生。allow-same-origin" src="https://sourcefile.onthesamedomain.com" title="Video"></iframe>