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. Built from https://develop.svn.wordpress.org/trunk@46745 git-svn-id: http://core.svn.wordpress.org/trunk@46545 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
306045277e
commit
eec579dd86
|
@ -417,10 +417,6 @@ wp.mediaWidgets = ( function( $ ) {
|
||||||
}).render();
|
}).render();
|
||||||
|
|
||||||
this.content.set( view );
|
this.content.set( view );
|
||||||
|
|
||||||
if ( ! wp.media.isTouchDevice ) {
|
|
||||||
view.url.focus();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -13,7 +13,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.4-alpha-46744';
|
$wp_version = '5.4-alpha-46745';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue