When using the spacebar to select something in "bulk select" mode, don't scroll the page.
Props avryl. Fixes #30622. git-svn-id: https://develop.svn.wordpress.org/trunk@30777 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
292a65f737
commit
a0c600a121
|
@ -5243,14 +5243,13 @@
|
|||
return;
|
||||
}
|
||||
|
||||
event.preventDefault();
|
||||
|
||||
// In the grid view, bubble up an edit:attachment event to the controller.
|
||||
if ( this.controller.isModeActive( 'grid' ) ) {
|
||||
if ( this.controller.isModeActive( 'edit' ) ) {
|
||||
// Pass the current target to restore focus when closing
|
||||
this.controller.trigger( 'edit:attachment', this.model, event.currentTarget );
|
||||
|
||||
// Don't scroll the view and don't attempt to submit anything.
|
||||
event.stopPropagation();
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -5270,9 +5269,6 @@
|
|||
});
|
||||
|
||||
this.controller.trigger( 'selection:toggle' );
|
||||
|
||||
// Don't scroll the view and don't attempt to submit anything.
|
||||
event.stopPropagation();
|
||||
},
|
||||
/**
|
||||
* @param {Object} options
|
||||
|
|
Loading…
Reference in New Issue