Skip to content

Commit

Permalink
Refactoring.
Browse files Browse the repository at this point in the history
  • Loading branch information
jacekbogdanski committed Jun 29, 2018
1 parent 832698e commit 339b324
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions plugins/autocomplete/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -673,9 +673,9 @@
if ( this.element.contains( target ) ) {

// Find node containing data-id attribute inside target node tree (#2187).
target = target.getParents().filter( function( element ) {
target = target.getAscendant( function( element ) {
return element.hasAttribute( 'data-id' );
} )[ 0 ];
}, true );

if ( !target ) {
return;
Expand Down
4 changes: 2 additions & 2 deletions tests/plugins/autocomplete/manual/mouseover.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

1. Open a console.
1. Focus the editor.
1. Type `@` character.
1. Type `@` character to open autocomplete with default template.
1. Move mouse over the last dropdown item.
1. Press enter.
1. Repeat with `#` character.
1. Repeat with `#` character to open autocomplete with custom template.


## Expected
Expand Down

0 comments on commit 339b324

Please sign in to comment.