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

WordPress Trac noreply at wordpress.org
Sun Mar 1 21:01:09 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 has-screenshots  |     Focuses:  ui
---------------------------------------+------------------------------

Comment (by garrett-eclipse):

 Thanks for the patch @birgire

 After testing I had to revert the `$target` to `event.target` as these
 javascript functions expect the js element and not the jquery
 representation of it. Also found using the default `true` on the
 `scrollIntoView` returned me to the same space, with false I was slightly
 moved up the page.

 Currently testing cross-browser so if I come across other nuances will
 update.

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


More information about the wp-trac mailing list