diff --git a/modules/ve/ui/widgets/ve.ui.MWCategoryInputWidget.js b/modules/ve/ui/widgets/ve.ui.MWCategoryInputWidget.js index e7cbbf5bfe..f54f0b3953 100644 --- a/modules/ve/ui/widgets/ve.ui.MWCategoryInputWidget.js +++ b/modules/ve/ui/widgets/ve.ui.MWCategoryInputWidget.js @@ -116,7 +116,7 @@ ve.ui.MWCategoryInputWidget.prototype.getLookupMenuItemsFromData = function ( da for ( i = 0, len = matchingCategories.length; i < len; i++ ) { item = matchingCategories[i]; if ( - existingCategoryItems.indexOf( item ) === -1 && + existingCategoryItems.indexOf( category.value ) === -1 && item.match( pattern ) ) { if ( item === category.value ) {