diff options
author | James D. Forrester <jforrester@wikimedia.org> | 2014-11-03 13:02:19 -0800 |
---|---|---|
committer | James D. Forrester <jforrester@wikimedia.org> | 2014-11-03 13:02:19 -0800 |
commit | b8543e4066260853de1649f4e40b6caeeb20e9e5 (patch) | |
tree | 36aee3040d0b89e4c994f5bcdca5af8e30eab7d9 /resources/lib/oojs-ui/oojs-ui.js | |
parent | 1c0e593bc23d700e1fb9152fc60afe78d39d1cb2 (diff) | |
download | mediawikicore-b8543e4066260853de1649f4e40b6caeeb20e9e5.tar.gz mediawikicore-b8543e4066260853de1649f4e40b6caeeb20e9e5.zip |
Update OOjs UI to v0.1.0-pre (571f26d0ab)
New changes:
8ada8cd OOUI PHP: Use 'OOUI' namespace instead of 'OoUi' class name prefix
4c56ad5 More random documentation fixes
3eb27b9 Recompute ComboBox selection when adding/removing items
e596cc5 Followup d3367bb: make FieldsetLayout <label>s display: block;
Change-Id: I5525a6285f4f24fa0fd997482c1735bef5639dc6
Diffstat (limited to 'resources/lib/oojs-ui/oojs-ui.js')
-rw-r--r-- | resources/lib/oojs-ui/oojs-ui.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/resources/lib/oojs-ui/oojs-ui.js b/resources/lib/oojs-ui/oojs-ui.js index 3aaeae238c16..9e9aa5b569ec 100644 --- a/resources/lib/oojs-ui/oojs-ui.js +++ b/resources/lib/oojs-ui/oojs-ui.js @@ -1,12 +1,12 @@ /*! - * OOjs UI v0.1.0-pre (eee616d664) + * OOjs UI v0.1.0-pre (571f26d0ab) * https://www.mediawiki.org/wiki/OOjs_UI * * Copyright 2011–2014 OOjs Team and other contributors. * Released under the MIT license * http://oojs.mit-license.org * - * Date: 2014-10-31T23:23:56Z + * Date: 2014-11-03T21:02:06Z */ ( function ( OO ) { @@ -9806,6 +9806,8 @@ OO.ui.ComboBoxWidget.prototype.onMenuChoose = function ( item ) { * Handle menu item change events. */ OO.ui.ComboBoxWidget.prototype.onMenuItemsChange = function () { + var match = this.menu.getItemFromData( this.input.getValue() ); + this.menu.selectItem( match ); this.$element.toggleClass( 'oo-ui-comboBoxWidget-empty', this.menu.isEmpty() ); }; |