ant-design / ant-design/x

sender的slot模式选中文本删除问题

Open
#1,906 0 comments 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://img.alicdn.com/imgextra/i4/O1CN01Pwwa1226TFnb1d2Lp_!!6000000007662-1-tps-2472-1056.gif
https://img.alicdn.com/imgextra/i3/O1CN01s6yOC21CsnP74o7Qp_!!6000000000137-1-tps-2472-1056.gif
步骤:
1.选中文本删除若抵达slot,则会先删除slot
2.选中文本时正好鼠标hover到slot时,删除不了选中文本,有时稍微触即到边缘也删除不了选中文本

### 当前行为

_No response_

### 预期行为

_No response_

### 上下文

_No response_

### 版本

latest

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

_No response_

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the reported text-selection deletion behavior in the sender component, using the two linked GIFs and the latest version. Check cases where a selection reaches a slot or the pointer hovers near a slot; done means selected text is deleted reliably without deleting the slot first.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.