aboutsummaryrefslogtreecommitdiffstats
path: root/resources/lib/oojs-ui/oojs-ui-widgets.js
diff options
context:
space:
mode:
authorVolker E <volker.e@wikimedia.org>2018-04-24 16:53:54 -0700
committerVolkerE <volker.e@wikimedia.org>2018-04-24 23:59:24 +0000
commit86ae6cc9a8927535f0b699909bb8f0e580bd0665 (patch)
tree2de81ff903dc63ac4f532b5533519ac5fd0761e9 /resources/lib/oojs-ui/oojs-ui-widgets.js
parentda5da8bbd69ce7d3c46b7de72a5a4da1a1a9c6ef (diff)
downloadmediawikicore-86ae6cc9a8927535f0b699909bb8f0e580bd0665.tar.gz
mediawikicore-86ae6cc9a8927535f0b699909bb8f0e580bd0665.zip
Update OOUI to v0.26.5
Release notes: https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.26.5 Depends-on: Ieed078f4113e5ac4770c9e5d1f778a02c18ac6b7 Change-Id: Ia5e491f765935c2bf4bfeac2d02f1978f1a03b50
Diffstat (limited to 'resources/lib/oojs-ui/oojs-ui-widgets.js')
-rw-r--r--resources/lib/oojs-ui/oojs-ui-widgets.js16
1 files changed, 14 insertions, 2 deletions
diff --git a/resources/lib/oojs-ui/oojs-ui-widgets.js b/resources/lib/oojs-ui/oojs-ui-widgets.js
index 7407ed0c2d6d..333cd854832e 100644
--- a/resources/lib/oojs-ui/oojs-ui-widgets.js
+++ b/resources/lib/oojs-ui/oojs-ui-widgets.js
@@ -1,12 +1,12 @@
/*!
- * OOUI v0.26.4
+ * OOUI v0.26.5
* https://www.mediawiki.org/wiki/OOUI
*
* Copyright 2011–2018 OOUI Team and other contributors.
* Released under the MIT license
* http://oojs.mit-license.org
*
- * Date: 2018-04-17T22:23:58Z
+ * Date: 2018-04-24T23:29:01Z
*/
( function ( OO ) {
@@ -6831,6 +6831,18 @@ OO.ui.NumberInputWidget.prototype.setStep = function ( step, pageStep ) {
};
/**
+ * @inheritdoc
+ */
+OO.ui.NumberInputWidget.prototype.setValue = function ( value ) {
+ if ( value === '' ) {
+ // Some browsers allow a value in the input even if there isn't one reported by $input.val()
+ // so here we make sure an 'empty' value is actually displayed as such.
+ this.$input.val( '' );
+ }
+ return OO.ui.NumberInputWidget.parent.prototype.setValue.call( this, value );
+};
+
+/**
* Get the current stepping values
*
* @return {number[]} Step and page step