Skip to content
This repository was archived by the owner on Feb 12, 2022. It is now read-only.

Commit 4f56f68

Browse files
committed
Merge remote-tracking branch 'upstream/3.x'
2 parents 7db6353 + d0ceee1 commit 4f56f68

File tree

6 files changed

+23
-15
lines changed

6 files changed

+23
-15
lines changed

dist/css/fuelux.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/css/fuelux.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/fuelux.zip

91 Bytes
Binary file not shown.

dist/js/fuelux.js

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Fuel UX v3.15.12
2+
* Fuel UX v3.15.13
33
* Copyright 2012-2017 ExactTarget
44
* Licensed under the BSD-3-Clause license (https://github.com/ExactTarget/fuelux/blob/master/LICENSE)
55
*/
@@ -2830,11 +2830,11 @@
28302830
},
28312831

28322832
render: function render() {
2833-
this.setValue( this.getDisplayValue() );
2833+
this._setValue( this.getDisplayValue() );
28342834
},
28352835

28362836
change: function change() {
2837-
this.setValue( this.getDisplayValue() );
2837+
this._setValue( this.getDisplayValue() );
28382838

28392839
this.triggerChangedEvent();
28402840
},
@@ -2885,7 +2885,7 @@
28852885

28862886
step: function step( isIncrease ) {
28872887
//refresh value from display before trying to increment in case they have just been typing before clicking the nubbins
2888-
this.setValue( this.getDisplayValue() );
2888+
this._setValue( this.getDisplayValue() );
28892889
var newVal;
28902890

28912891
if ( isIncrease ) {
@@ -2896,7 +2896,7 @@
28962896

28972897
newVal = newVal.toFixed( 5 );
28982898

2899-
this.setValue( newVal + this.unit );
2899+
this._setValue( newVal + this.unit );
29002900
},
29012901

29022902
getDisplayValue: function getDisplayValue() {
@@ -2918,6 +2918,10 @@
29182918
},
29192919

29202920
setValue: function setValue( val ) {
2921+
return this._setValue( val, true );
2922+
},
2923+
2924+
_setValue: function _setValue( val, shouldSetLastValue ) {
29212925
//remove any i18n on the number
29222926
if ( this.options.decimalMark !== '.' ) {
29232927
val = this.parseInput( val );
@@ -2934,7 +2938,7 @@
29342938

29352939
//make sure we are dealing with a number
29362940
if ( isNaN( intVal ) && !isFinite( intVal ) ) {
2937-
return this.setValue( this.options.value );
2941+
return this._setValue( this.options.value, shouldSetLastValue );
29382942
}
29392943

29402944
//conform
@@ -2953,6 +2957,10 @@
29532957
//display number
29542958
this.setDisplayValue( val );
29552959

2960+
if ( shouldSetLastValue ) {
2961+
this.lastValue = val;
2962+
}
2963+
29562964
return this;
29572965
},
29582966

dist/js/fuelux.min.js

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
"release": "grunt release"
8888
},
8989
"title": "Fuel UX",
90-
"version": "3.15.12",
90+
"version": "3.15.13",
9191
"volo": {
9292
"baseDir": "lib",
9393
"dependencies": {

0 commit comments

Comments
 (0)