Henning Snater has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/89178


Change subject: $.ui.suggester: Suppress autocomplete's native blur handling
......................................................................

$.ui.suggester: Suppress autocomplete's native blur handling

(bug 44896)
By suppressing autocomplete's native blur handling, the auto-completed string 
will not be dropped
when blurring the list of suggestions.

Change-Id: Ic47433bc2efc59c8d408d962cc4b9b2a1190d903
---
M ValueView/resources/jquery.ui/jquery.ui.suggester.js
1 file changed, 4 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/DataValues 
refs/changes/78/89178/1

diff --git a/ValueView/resources/jquery.ui/jquery.ui.suggester.js 
b/ValueView/resources/jquery.ui/jquery.ui.suggester.js
index d7b08d7..9eb5b8e 100644
--- a/ValueView/resources/jquery.ui/jquery.ui.suggester.js
+++ b/ValueView/resources/jquery.ui/jquery.ui.suggester.js
@@ -127,6 +127,10 @@
                                this.source = this._filterArray;
                        }
 
+                       // Get rid of autocomplete's native blur handling 
resetting the input (causing the
+                       // auto-completed string to be dropped).
+                       this.menu.option( 'blur', null );
+
                        /**
                         * @see ui.menu.refresh
                         */

-- 
To view, visit https://gerrit.wikimedia.org/r/89178
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic47433bc2efc59c8d408d962cc4b9b2a1190d903
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/DataValues
Gerrit-Branch: master
Gerrit-Owner: Henning Snater <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to