plotly / plotly/dash

Dialog box message not copiable if contains \n character

Offen
#1,601 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

bug P3
Vorherrschende Sprache
Python
Sterne
24.4k
Forks
2.3k
Ø Merge
2 T. 7 Std.
Gemergte PRs (30 T.)
13

Beschreibung

Thank you so much for helping improve the quality of Dash!

We do our best to catch bugs during the release process, but we rely on your help to find the ones that slip through.

Describe your context
Usign Dash for a Jira REST API Client, need to have a dynamic confirmDialog

  • replace the result of pip list | grep dash below
dash                  1.19.0
dash-core-components  1.15.0
dash-html-components  1.1.2
dash-renderer         1.9.0
dash-table            4.11.2
  • if frontend related, tell us your Browser, Version and OS

    • OS: ubuntu18.04
    • Browser chrome
    • Version 89

Describe the bug

When setting message value of dcc.ConfirmDialog if a \n character is present the message text can't be copied, works if no \n is present

Expected behavior

We wanted to have a list of issue keys in the dialog box to be copied, but the text can't be copied if it has a \n character in it

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginnen Sie mit der Komponente dcc.ConfirmDialog und reproduzieren Sie das Problem mit einer Nachricht, die in Chrome auf Ubuntu einen Zeilenumbruch enthält. Prüfen Sie, wie der Dialog seinen Text rendert und bereitstellt, und verifizieren Sie anschließend, dass eine Liste von Issue-Keys ausgewählt und kopiert werden kann, wenn die Nachricht Zeilenumbruchzeichen enthält.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
python, react
Bereich
frontend
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.