Cannot copy values from some columns #11740

Closed
opened 2025-12-29 21:49:20 +01:00 by adam · 3 comments
Owner

Originally created by @opericgithub on GitHub (Oct 16, 2025).

Originally assigned to: @jeremystretch on GitHub.

NetBox Edition

NetBox Community

NetBox Version

v4.4.4

Python Version

3.12

Steps to Reproduce

Selecting and copying values from columns like Device Role or Status no longer works. Ctrl+C results in nothing being copied.

  1. Go to Devices → List Devices
  2. Make sure "Device Role" or "Status" or "Tags" columns are visible
  3. Select text in one or multiple rows
  4. Press Ctrl+C
  5. Paste

Expected Behavior

Selected text from all columns should be copied to the clipboard.

Observed Behavior

Text from some columns is copied, but from some others isn't.

Additional observations:

The text exists in the DOM but cannot be copied when inside a <span class="badge">. (Device Role, Status, Tags, etc.).
Direct <a> elements inside <td> copy normally.
Likely a regression in frontend handling of badges/links affecting copy-paste functionality.

Originally created by @opericgithub on GitHub (Oct 16, 2025). Originally assigned to: @jeremystretch on GitHub. ### NetBox Edition NetBox Community ### NetBox Version v4.4.4 ### Python Version 3.12 ### Steps to Reproduce Selecting and copying values from columns like Device Role or Status no longer works. Ctrl+C results in nothing being copied. 1. Go to Devices → List Devices 2. Make sure "Device Role" or "Status" or "Tags" columns are visible 3. Select text in one or multiple rows 4. Press Ctrl+C 5. Paste ### Expected Behavior Selected text from all columns should be copied to the clipboard. ### Observed Behavior Text from some columns is copied, but from some others isn't. Additional observations: The text exists in the DOM but cannot be copied when inside a `<span class="badge">`. (Device Role, Status, Tags, etc.). Direct `<a>` elements inside `<td>` copy normally. Likely a regression in frontend handling of badges/links affecting copy-paste functionality.
adam added the type: bugstatus: acceptedseverity: low labels 2025-12-29 21:49:20 +01:00
adam closed this issue 2025-12-29 21:49:21 +01:00
Author
Owner

@bctiemann commented on GitHub (Oct 17, 2025):

Copy-pasting from the UI is not a supported workflow, especially considering all the different behaviors across browsers and platforms. You can get a much more predictable tabular output of the current view using the Export button (that's its purpose).

@bctiemann commented on GitHub (Oct 17, 2025): Copy-pasting from the UI is not a supported workflow, especially considering all the different behaviors across browsers and platforms. You can get a much more predictable tabular output of the current view using the Export button (that's its purpose).
Author
Owner

@opericgithub commented on GitHub (Oct 17, 2025):

I don't want to bother with export button or export templates when I want to copy only one row.

@opericgithub commented on GitHub (Oct 17, 2025): I don't want to bother with export button or export templates when I want to copy only one row.
Author
Owner

@jeremystretch commented on GitHub (Oct 17, 2025):

This seems to be an effect of the Tabler CSS theme, which sets user-select: none for elements with the .badge class. (The underlying Boostrap framework does not.)

We could override this with user-select: text but I can't promise it will copy the content cleanly. (Or, we could override the rule only within a table cell.)

@jeremystretch commented on GitHub (Oct 17, 2025): This seems to be an effect of the [Tabler CSS theme](https://preview.tabler.io/badges.html), which sets `user-select: none` for elements with the `.badge` class. (The underlying Boostrap framework does not.) We could override this with `user-select: text` but I can't promise it will copy the content cleanly. (Or, we could override the rule only within a table cell.)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11740