chrome浏览器版本150.0.7871.47使用Sender组件slot模式时,粘贴包含换行的文本只读取到第一行内容
Open
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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