mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-23 22:45:20 +00:00
Merge "ce.MWReferenceListNode: Only open dialog on unmodified left clicks"
This commit is contained in:
commit
f4c690fa1a
|
@ -261,7 +261,7 @@ ve.ce.MWReferencesListNode.prototype.update = function () {
|
|||
if ( this.getRoot() ) {
|
||||
const surface = this.getRoot().getSurface().getSurface();
|
||||
$li.on( 'mousedown', function ( e ) {
|
||||
if ( modelNode && modelNode.length ) {
|
||||
if ( ve.isUnmodifiedLeftClick( e ) && modelNode && modelNode.length ) {
|
||||
const items = ve.ui.contextItemFactory.getRelatedItems( [ firstNode ] )
|
||||
.filter( ( item ) => item.name !== 'mobileActions' );
|
||||
if ( items.length ) {
|
||||
|
|
Loading…
Reference in a new issue