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

Ouverte
#644 4 commentaires 0 réactions 1 personne assignée Voir sur GitHub

@YousefED y travaille déjà.

Depuis le 7/6/2024.

Évaluation

Cette issue n'a pas encore été évaluée.

Description

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

Langage dominant
TypeScript
Étoiles
10.2k
Forks
772
Merge moyen
3 j 11 h
PR mergées (30 j)
17

Guide de contribution

Ouvrir le guide de contribution

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de TypeCellOS/BlockNote

Toutes les issues de TypeCellOS/BlockNote

Issues similaires

Plus d'issues TypeScript

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.