Skip to content

sender输入框 使用自定义输入框 无法编辑的bug #697

@whz1122

Description

@whz1122

重现步骤

步骤:
1.
2.
3.

当前行为

<Sender
                        components={{
                            input: () => (
                                <div
                                style={{ width: '100%', backgroundColor: 'red', height: '32px', outline: 'none' }}
                                contentEditable={true}
                                suppressContentEditableWarning={true}
                                onInput={(e) => setValue(e.currentTarget.textContent || '')}
                                dangerouslySetInnerHTML={{ __html: value }}
                            />
                            )
                        }}    
                    />```
使用antd自带  <Input.TextArea/>的组件也无法使用 其编辑能力

### 预期行为

_No response_

### 上下文

_No response_

### 版本

1.0.5

### 您在哪些浏览器上遇到了这个问题?

_No response_

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidThis doesn't seem right

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions