dcloudio / dcloudio/uni-app

this.editorCtx.blur 先出现一下,然后又隐藏了

Open
#2,795 2 comments 0 reactions 0 assignees View on GitHub
doubleCheck
Dominant language
JavaScript
Stars
41.6k
Forks
3.7k
Avg merge
7h 6m
Merged PRs (30d)
6

Description

1.初始化editor
uni.createSelectorQuery().select('#editorId')
.context(res => {
this.editorCtx = res.context;
}).exec();

2.插入表情图片
this.editorCtx.insertImage({
src: item.imgUrl,
width: '25px',
height: '25px'
});

在插入表情图片后,使用过editorContext.blur()方法,去掉焦点,发现软键盘是先出现一下,然后又隐藏了;也使用过setInterval循环调用uni.hideKeyboard(),还是不行,点的速度快,也会先出现一下软键盘,然后又隐藏了

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.