editor调用wx.hideKeyboard不能关闭软键盘

发布于 8 年前作者 mkang12477 次浏览最后编辑 8 年前来自 issues

在editor在得到焦点弹出键盘,想使用然后调用wx.hideKeyboard

wx.hideKeyboard({

        complete: res => {

          console.log(res);          

    }

});

报以下错:

errMsg:hidekeyboard:fail:input not exists

2 回复
yuanqiang
yuanqiang1 楼6 年前

editor 隐藏键盘要用 editorContext.blur

wanli
wanli2 楼6 年前

麻烦提供能复现问题的代码片段https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html