diff --git a/src/wp-includes/js/tinymce/plugins/wplink/plugin.js b/src/wp-includes/js/tinymce/plugins/wplink/plugin.js index f2a9432ab8..0083c1b28d 100644 --- a/src/wp-includes/js/tinymce/plugins/wplink/plugin.js +++ b/src/wp-includes/js/tinymce/plugins/wplink/plugin.js @@ -348,6 +348,7 @@ }, focus: function( event, ui ) { $input.attr( 'aria-activedescendant', 'mce-wp-autocomplete-' + ui.item.ID ); + event.preventDefault(); }, select: function( event, ui ) { $input.val( ui.item.permalink ); diff --git a/src/wp-includes/js/wplink.js b/src/wp-includes/js/wplink.js index d541f26086..27505b81d4 100644 --- a/src/wp-includes/js/wplink.js +++ b/src/wp-includes/js/wplink.js @@ -76,6 +76,7 @@ var wpLink; }, focus: function( event, ui ) { $input.attr( 'aria-activedescendant', 'mce-wp-autocomplete-' + ui.item.ID ); + event.preventDefault(); }, select: function( event, ui ) { $input.val( ui.item.permalink );