The text in the form input wrapped in react-draggable cannot be selected normally

Aperta
#653 4 commenti 1 reazione 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
javascript, react
Ambito
frontend

Direzione di ricerca

Start by reproducing the issue with an antd modal containing an input or textarea inside react-draggable, then inspect how text selection behaves when the pointer leaves the draggable area. The work is done when dragging across the boundary preserves the input's selected text and focus behavior; no repository file or test is named in the issue.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

As an example
When I use the antd modal component (any component can be reproduced), I use the drag and drop function. At this time, if I add an input (or textarea) to the modal and write text in the input, then I write the text in the most input text. Hold down the left mouse button on the right and swipe left to select text (quickly), when the mouse slides outside of react-draggable, the background color of the selected text in the input disappears, and the input becomes the state of triggering the focus.

How can I avoid this abnormal situation?

The following three pictures represent snapshots taken during mouse movement
1.
image
2.
image
3.
image

Lingua principale
JavaScript
Stelle
9.3k
Fork
1k
Merge medio
3g 8h
PR unite (30g)
4

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di react-grid-layout/react-draggable

Tutte le issue di react-grid-layout/react-draggable

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.