Robmoen has uploaded a new change for review.
https://gerrit.wikimedia.org/r/72849
Change subject: Be sure lookupMenu input is focused before showing inputMenu.
......................................................................
Be sure lookupMenu input is focused before showing inputMenu.
Resolving this bug reveals a completely unreleated bug where hitting
enter while making a linke prior to the input being focused, the selected
text gets replaced with a new line.
Bug: 49941
Change-Id: I61a90eeaa40b8b66886c17152544c46fa8ca396a
---
M modules/ve/ui/widgets/ve.ui.LookupInputWidget.js
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/VisualEditor
refs/changes/49/72849/1
diff --git a/modules/ve/ui/widgets/ve.ui.LookupInputWidget.js
b/modules/ve/ui/widgets/ve.ui.LookupInputWidget.js
index 2b45449..b7c1447 100644
--- a/modules/ve/ui/widgets/ve.ui.LookupInputWidget.js
+++ b/modules/ve/ui/widgets/ve.ui.LookupInputWidget.js
@@ -101,7 +101,7 @@
ve.ui.LookupInputWidget.prototype.openLookupMenu = function () {
var value = this.lookupInput.getValue();
- if ( value.length && $.trim( value ) !== '' ) {
+ if ( this.lookupMenu.$input.is( ':focus' ) && $.trim( value ) !== '' ) {
this.populateLookupMenu();
if ( !this.lookupMenu.isVisible() ) {
this.lookupMenu.show();
--
To view, visit https://gerrit.wikimedia.org/r/72849
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I61a90eeaa40b8b66886c17152544c46fa8ca396a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Robmoen <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits