苹果fixed定位键盘弹出失效问题
先上个大概代码,晚点有空记得的话补个demo。 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071componentDidMount() { this.visualViewport(true)}componentDidUpdate(prevProps) { const { isFocus: now } = this.props const { isFocus: prev } = prevProps // 苹果12及以下版本的兼容处理 if (now !== prev && isiOS && !window.visualViewport) { now && setTimeout(() => { ...