[wp-trac] [WordPress Trac] #49540: Regression: Copy action now scrolls up the page on the privacy policy guide.

WordPress Trac noreply at wordpress.org
Thu Feb 27 21:36:40 UTC 2020


#49540: Regression: Copy action now scrolls up the page on the privacy policy
guide.
-------------------------------------------------+-------------------------
 Reporter:  garrett-eclipse                      |       Owner:  garrett-
                                                 |  eclipse
     Type:  defect (bug)                         |      Status:  accepted
 Priority:  normal                               |   Milestone:  5.4
Component:  Privacy                              |     Version:  trunk
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-testing has-         |     Focuses:  ui
  screenshots                                    |
-------------------------------------------------+-------------------------
Changes (by garrett-eclipse):

 * keywords:   => has-patch needs-testing has-screenshots
 * owner:  (none) => garrett-eclipse
 * status:  new => accepted
 * milestone:  Awaiting Review => 5.4


Comment:

 In patch
 [https://core.trac.wordpress.org/attachment/ticket/49540/49540.diff
 49540.diff] I've added a `event.target.scrollIntoView()` call to have the
 view return back to the button. This happens quite fast so doesn't seem to
 cause the page to jump.

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


More information about the wp-trac mailing list