react-native-rich-editor icon indicating copy to clipboard operation
react-native-rich-editor copied to clipboard

ios16系统,编辑器初始化的时候键盘会自动弹起

Open Afeixiaohuozi opened this issue 2 years ago • 2 comments
trafficstars

<RichEditor showsVerticalScrollIndicator={false} initialFocus={false} disabled={false} editorStyle={{ color: Theme.C_222222, placeholderColor: Theme.C_CCCCCC, contentCSSText: 'font-size: 14px' }} containerStyle={styles.richEditContainer} ref={this.richText} style={styles.richEditStyle} placeholder={'内容不少于10个字,欢迎你的用心分享~'} onChange={this.handleChange} // onHeightChange={this.handleHeightChange} onMessage={this.handleMessage} onFocus={this.handleFocus} onBlur={this.handleBlur} pasteAsPlainText={false} />

在iOS16上,富文本编辑器初始化的时候,键盘会自动弹起。键盘弹起以后,有时候可以自动收起,有时候不能收回 initialFocus={false}不生效 在iOS16之前版本,直接insertHTML,键盘不会弹起。iOS插入HTML键盘也会弹起 this.richText && this.richText.current && this.richText.current.insertHTML( '<div><br></div><div><br></div>' )

Afeixiaohuozi avatar Feb 14 '23 10:02 Afeixiaohuozi

I have the same problem

xiaoosnggao avatar Mar 14 '23 13:03 xiaoosnggao

initialFocus={false} The issue has been fixed

stulip avatar Mar 31 '23 11:03 stulip