WordPress.org

Make WordPress Core

Ticket #49540: 49540.diff

File 49540.diff, 441 bytes (added by garrett-eclipse, 8 months ago)

Single-line patch to address the issue and scroll the button back into view once the copy action is complete.

  • src/js/_enqueues/admin/privacy-tools.js

     
    273273
    274274                                        $container.removeClass( 'hide-privacy-policy-tutorial' );
    275275                                        window.getSelection().removeAllRanges();
     276
     277                                        event.target.scrollIntoView();
    276278                                } catch ( er ) {}
    277279                        }
    278280                }