[wp-trac] [WordPress Trac] #53652: Copy suggested policy text to clipboard not triggered on click

WordPress Trac noreply at wordpress.org
Tue Jul 13 19:10:55 UTC 2021


#53652: Copy suggested policy text to clipboard not triggered on click
--------------------------+-----------------------------
 Reporter:  walbo         |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Privacy       |    Version:  5.7.1
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 In [50609] a `<span>` was added inside the copy button in the privacy
 guide page. The copy is triggered by checking
 [https://core.trac.wordpress.org/browser/branches/5.8/src/js/_enqueues/admin
 /privacy-tools.js#L284 if the target is `button.privacy-text-copy`], but
 after the change it picks up the `span` as the target. The pointer events
 on the span needs to be removed.

 Steps to reproduce:
 1. Goto: `wp-admin/options-privacy.php?tab=policyguide`
 2. Open the `WordPress` accordion and click the button `Copy suggested
 policy text to clipboard`. (Make sure to click on the text/span)
 3. Nothing happends.
 4. Press `Enter` to trigger a click on the button and not the span. The
 `Copied!` text appears and the text is copied.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53652>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list