Allow text selection in Static Leases page?

In the status overview page, one can simply double click/highlight any field in the page to select it. In the Network->DHCP and DNS->Static Leases page, this is not possible.

I simply wanted to copy/paste the mac address of a device that wasn't on the network.

What is the reasoning behind this? Genuinely wondering why it's not possible by default!

I'm able to copy/paste the MAC addresses on 24.10.0 - both before and after pausing refresh on the Static Leases page. What version of OpenWrt are you using?

Have you paused the automatic refresh by clicking the top right where it says refreshing?

Yes, but to be clear, I'm able to copy/paste before doing so as well (albeit time constrained).

Selection works for me too. But it took me a minute to realise the refresh was causing my selection to be lost on mobile.

Tried Pausing refresh, still cant. When I try to highlight any field, the whole "static entry" line moves as if if was a "block of data". Tested on Chrome and Firefox.

Currently running on a GL.iNet GL-MT6000 with OpenWrt SNAPSHOT r29421-e75ab0aa25 / LuCI next-v4 branch 25.073.76666~a948f59

Video of problem: https://www.youtube.com/watch?v=3iL3lknHaOs

The table rows carry the draggable="true" attribute. If you try to select something by dragging your mouse pointer over the text, the browser takes it as an attempt to drag the whole element, in this case the table row, instead of selecting the text within the element. Not very much you can do about that, outside of patching the JavaScript responsible for generating the UI.

It's hard to look into the UI's developer's mind, but to me this seems to stem from a misinterpretation of the HTML specs, or maybe the remnants of an experiment to make the whole element draggable. The table rows are supposed to be dragged, but the handler is attached to a dedicated drag handle on the right and not to the table row element.

4 Likes

Thanks for the clarification and confirming I am not crazy! How are the other people in this thread able to do it though?

You are looking at the untitled static leases table on the top where a selection is not possible, they are looking at the "Active DHCP leases" table below where it is.

I will refrain from using harsh language, but it's a shame they did not take the time to read my post then, as I clearly lay out which page I am referring to!

I will look into "patching the javascrypt" to fix this.

Thanks again for taking the time!

  • You didn't specify which section you had an issue with
  • It's the same page, just the top or bottom (from what @takimata said)
  • Actually, I can copy/paste in both (including the top)

Top:
Screenshot 2025-04-09 203338

Screenshot 2025-04-09 203430

Please do.

Please do - and please don't assume someone didn't look into your issue in the future. I now understand how you wish to copy/paste (row by row) is different than how I tested (just tested highlight/copy from top, end of row and bottom of the section).

And my bad, I considered that the [whole] field.

Smart. You're working around the issue by starting the selection on the table header, which does not have the draggable="true" attribute, and then drag it to include the table row content (and then, of course, you'd copy both the table header and the content).

You should report the issue to GL.inet, seems it's their firmware you're using.

Chill. It is actually a LuCI issue, it's also present in official builds.

1 Like

While true and chill is nice, I did ask the OP what version they were running.

No I am not running the GL.iNet build, I'm running openwrt, the community build on the mt6000 page: https://openwrt.org/toh/gl.inet/gl-mt6000#community_builds

ok..now I understand how he made it work, by selecting the whole thing. At least that's a workaround!