[pdm-devel] applied: [PATCH yew-comp v3 1/3] utils/tfa add recover/token panel: add copy_text_to_clipboard function

Thomas Lamprecht t.lamprecht at proxmox.com
Wed Oct 22 19:03:51 CEST 2025


On Fri, 17 Oct 2025 14:46:42 +0200, Shannon Sterz wrote:
> this also adapts all use sites of `copy_to_clipboard` to use this new
> function instead and marks the old function as deprecated.
> `copy_to_clipboard` is based on the `document.execCommand()` method
> that is deprecated and might not be supported in the future [1].
> 
> `copy_text_to_clipboard` is based on the new `Clipboard` API that is
> now in baseline and, thus, widely available. it should also be
> somewhat more ergonomic to use. users don't need to handle a `NodeRef`
> in multiple places, but can just pass text to be copied to the
> function directly.
> 
> [...]

Applied, thanks!

[1/3] utils/tfa add recover/token panel: add copy_text_to_clipboard function
      commit: 37d1c6915c16f5d79a5102550b6eda78076680c9




More information about the pdm-devel mailing list