mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 02:23:58 +00:00
Merge "ve.ce.MWGalleryNode: Ensure we always have a focusable element"
This commit is contained in:
commit
2e87e03a29
|
@ -38,8 +38,8 @@ ve.ce.MWGalleryNode.static.primaryCommandName = 'gallery';
|
|||
* @inheritdoc ve.ce.GeneratedContentNode
|
||||
*/
|
||||
ve.ce.MWGalleryNode.prototype.getFocusableElement = function () {
|
||||
var $gallery = this.$element.find( '.gallery' ).addBack( '.gallery' );
|
||||
return $gallery.length ? $gallery.children() : this.$element;
|
||||
var $gallery = this.$element.find( '.gallery' ).addBack( '.gallery' ).children();
|
||||
return $gallery.length ? $gallery : this.$element;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue