ant-design / ant-design/x

Sender组件的components props用不了啊,自定义组件直接不可编辑输入啊,好烦啊

Open
#1,944 1 comment 1 reaction 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
4.8k
Forks
1.2k
Avg merge
3d 3h
Merged PRs (30d)
2

Description

### 重现步骤

在线示例链接:(必填)https://x.ant.design/components/sender-cn#api
import React, { useState } from 'react';
import { Sender } from '@ant-design/x';
import { Input } from 'antd';

export default function Demo() {
const [text, setText] = useState('');

return (



}}
/>

);
}
步骤:
1.要么直接不可编辑输入
2.要么输入一个字符光标就没了
3.要么就是插槽模式,字符长度不支持限制,粘贴没法保留文本格式
4.。。。。哎

### 当前行为

_No response_

### 预期行为

_No response_

### 上下文

这么显而易见的问题什么时候可以修复好啊

### 版本

最新版本2.8.0

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

Chrome

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the linked Sender API demo and reproduce the issue in Chrome using the reported components.input override with antd Input, controlled value, and onChange. Trace the Sender input entry point and its component-props handling, then verify that editing, cursor position, length limits, and pasted text behave consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.