[wp-trac] [WordPress Trac] #56515: Uncaught TypeError: clipboard.clipboardAction is undefined

WordPress Trac noreply at wordpress.org
Mon Sep 5 20:06:35 UTC 2022


#56515: Uncaught TypeError: clipboard.clipboardAction is undefined
--------------------------+-------------------------
 Reporter:  hiren1094     |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  6.0.3
Component:  Site Health   |     Version:  6.0
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  javascript
--------------------------+-------------------------

Comment (by Clorith):

 Aha, so it requires waiting after, I see, yes I can replicate it then.

 The change here is that the clipboard.js library was updated from version
 2.0.8 to 2.0.10

 The reasoning being that the API changed, the `clipboardAction` no longer
 exists (it's been replaced with just `action`), but more importantly, the
 removal of the fake DOM element is now handled by the `.copy` API, so no
 longer needs to be done by us.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/56515#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list