diff --git a/zh-cn/application-dev/reference/apis/js-apis-inputmethodengine.md b/zh-cn/application-dev/reference/apis/js-apis-inputmethodengine.md index 7f20a6b2cdf3e03f23b6fe34cefe87b0af991b76..0c16abf2c614cccbf53f5586cfd05ab38e5bc3f1 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-inputmethodengine.md +++ b/zh-cn/application-dev/reference/apis/js-apis-inputmethodengine.md @@ -596,7 +596,7 @@ try { } try { - inputMethodEngine.getInputMethodAbility().destroyPanel((err) => { + inputMethodEngine.getInputMethodAbility().destroyPanel(globalThis.inputMethodPanel, (err) => { if(err !== undefined) { console.log('Failed to destroy panel, err: ' + JSON.stringify(err)); return; @@ -648,7 +648,7 @@ try { } try { - inputMethodEngine.getInputMethodAbility().destroyPanel().then(() => { + inputMethodEngine.getInputMethodAbility().destroyPanel(globalThis.inputMethodPanel).then(() => { console.log('Succeed in destroying panel.'); }).catch((err) => { console.log('Failed to destroy panel, err: ' + JSON.stringify(err));