WordPress.org

Make WordPress Core

Changeset 46745


Ignore:
Timestamp:
11/18/2019 04:21:37 PM (11 months ago)
Author:
afercia
Message:

Widgets: Avoid to move focus to the Image Widget "Insert from URL" field.

Fixes a bug after [45499], where the backbone view element isn't the input field any longer. Also, managing focus programmatically is often an assumption on a specific user flow and should generally be avoided, see #43169.

Props dufresnesteven.
See #43169.
Fixes #48588.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/js/_enqueues/wp/widgets/media.js

    r46586 r46745  
    418418
    419419            this.content.set( view );
    420 
    421             if ( ! wp.media.isTouchDevice ) {
    422                 view.url.focus();
    423             }
    424420        }
    425421    });
Note: See TracChangeset for help on using the changeset viewer.