Skip to content

Commit

Permalink
调用history.replaceState的时候需要合并原先的histroy.state
Browse files Browse the repository at this point in the history
  • Loading branch information
youshao committed Jun 22, 2018
1 parent 4a5808a commit da00f3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keyboard/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ class CxyKeyboard {

// pushState 来处理安卓点击后退按钮会关闭webView的问题
if (this.isAndroid() && !this.isShow) {
history.replaceState({ hideKeyboard: true }, "", "");
history.replaceState(Object.assign({ hideKeyboard: true }, history.state), "", ""); // 新增隐藏webview的标识符
history.pushState({}, "", "");
}

Expand Down

0 comments on commit da00f3b

Please sign in to comment.