ant-design / ant-design/x

chrome浏览器版本150.0.7871.47使用Sender组件slot模式时,粘贴包含换行的文本只读取到第一行内容

Open
#1,965 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
4.8k
Forks
1.2k
Avg merge
3d 3h
Merged PRs (30d)
2

Description

重现步骤

在线示例链接:(必填)

步骤:
1.chrome更新到149版本以上
2.Sender组件使用slot模式
3.粘贴包含换行的文本

当前行为

F12查看元素发现每一行文本被div包裹,发送时只能拿到第一行内容

预期行为

发送时应该拿到粘贴的所有内容

上下文

No response

版本

2.7.0

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

Chrome

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Sender component in slot mode and reproduce the issue in Chrome 149 or later by pasting multiline text. Inspect how the pasted lines are represented in the DOM and verify that sending preserves every line rather than only the first; the issue does not name a source file or test.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.