Global Dragstart events might be interfering with text selection in custom block.

Đang mở
#644 4 bình luận 0 reaction 1 người được giao Xem trên GitHub

@YousefED đang làm issue này rồi.

Từ ngày 7/6/2024.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

bug:P3

Describe the bug
I have a custom React block that displays a table (I use antd's table component). I am unable to select text inside the table when the active block is clicked. Upon some debugging, wondering if this could be the global dragstart handlers?

Attaching a video showing the issue.

The exact bug description is:

  1. If I'm on a normal paragraph node, and select the table text without single clicking on the custom block, it works. (Notice that the placeholder "Enter text or type '/' for commands" text is still visible when I do it this way)
  2. But, if I click on the custom block, such that the placeholder text has disappeared, and then try to select text, it doesnt' work.

For some reason, the dragstart events are fired when I try to select the text in the second way.

Let me know if any ideas why this might be happening? I haven't created a repro yet, but could jic needed!

https://github.com/TypeCellOS/BlockNote/assets/12295494/4a831dac-2cda-4443-84d3-f13fa971d1ce

Ngôn ngữ chính
TypeScript
Star
10.2k
Fork
772
Merge trung bình
3 ngày 11 giờ
Pull request đã merge (30 ngày)
17

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của TypeCellOS/BlockNote

Tất cả issue của TypeCellOS/BlockNote

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.